1、document.execCommand('Saveas');
2、document.all.WebBrowser.ExecWB(4,1);
<object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" width="0"></object>
注:第二种方法必须配合上object标签
1、document.execCommand('Saveas');
2、document.all.WebBrowser.ExecWB(4,1);
<object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" width="0"></object>
注:第二种方法必须配合上object标签