打印页面内容
JS: function print(obj) { var newWindowObj = window.open(); var printStr = obj.innerHTML; newWindow.document.write(printStr); newWindow.document.close(); newWindow.print(); newWindow.close(); } html: <button onclick="print(document.getElementById('#Id'))">打印</button>