当用showModalDialog时,如果页面有表单,或者类似提交到服务器的Button按钮,点击总会再弹出新的窗口,这个在Html页的Head中加入: <head> <base target="_self"></head> 即可解决