为什么取消的按钮要点两次?
var mywin=confirm("请确认是否在新窗口打开网页?")
if(mywin){
window.open('http://www.imooc.com','_blank','width=400','height=500','menubar=no','toolbar=no');
}else{}
var mywin=confirm("请确认是否在新窗口打开网页?")
if(mywin){
window.open('http://www.imooc.com','_blank','width=400','height=500','menubar=no','toolbar=no');
}else{}
2020-07-15
举报