function svcode(F) { if (document.all) { var F = $id(F); var E = window.open("", "_blank", "top=10000"); E.document.open("text/html", "replace"); E.document.writeln(F.value); E.document.execCommand("saveas", "", "mb5u.htm"); E.close() } else { var G = $id(F).value; if (G != "") { var H = window.open("", "", ""); H.opener = null; H.document.write("<div style='margin-bottom:20px;background:#333; border-bottom:1px solid #000;color:#fff; height:30px; line-height:30px;text-align:center; font-size:12px;'>\u540c\u65f6\u6309\u4e0bCTRL+S,\u5feb\u901f\u4fdd\u5b58\u5230\u672c\u5730!</div>" + G); H.document.close() } } }
原文链接:https://www.cnblogs.com/sntetwt/p/3382818.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。
© 版权声明
文章版权归作者所有,未经允许请勿转载。