function save_record(filename, content) {
 //打开新窗口保存
 var winRecord = window.open('about:blank', '_blank', 'top=500');
 winRecord.document.open("text/html", "utf-8");
 winRecord.document.write(" <div class=\"introBox section package boxBg02\" id=\"yhtcprediv\">" + content + "</div>");         
 winRecord.document.execCommand("SaveAs", true, filename + ".html");
 winRecord.close();
 }

 

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案