废话不多说了,直接贴代码了。
具体代码如下所示:
[removed]
function openWindow(){
var my=confirm("你要打开窗口吗?")
if(my==true){
var url=prompt("通过输入对话框,确定打开的网址","http://www.imooc.com")
if(url!=null){
window.open('htttp://www.refw.org.cn','_blank','width=300,height=300,scrollbar
当我们在使用 Visual Studio 2019 非预览版本开发 Windows Forms App (.NET Core) 应用程序时是不能使用窗体设计器的。即使在窗体文件上右击选择“显示设计器”菜单,仍旧只能看到代码,无法打开窗体设计器。
根据微软开发者博客的描述,我们可以使用 Visual Studio 2019 预览通道,将 Visual Studio 2019 更新至 16.6 来启用设计器(参见:Updates on .NET Core Windows Forms designer