列印

1 篇文章 / 0 new
author
列印
利用 js 印行頁面內容列印
var printPage = window.open("", "Printing...", "");
printPage.document.open();
printPage.document.write("<HTML><head></head><BODY onload='window.print();window.close()'>");
printPage.document.write($('#print_parts').html());//列印內容區塊
printPage.document.close("</BODY></HTML>");
Free Web Hosting