javascript打印函数function doPrint() { 获得body的htmlbdhtml=window.document.body.innerHTML 打印开始的标志sprnstr="<!--startprint--&am2023-04-30JavaScript1040