在 HTMLDom 中prompt()方法只能设置输入文本和默认文本参数; 用window.open()方法 window.open(URL,name,features,replace) 4个参数可以实现你新建窗口属性