JavaScript Window对象print()方法
JavaScript Print方法用于打印页面内容。
Print方法将打印当前打开窗口的内容。
语法
Window.print()
JavaScript Window对象print()方法示例
<html> <head> <script type="text/javascript"> function myfun() { window.print(); } </script> </head> <body> <button onclick="myfun()">打印</button> </body> </html>
日期:2020-04-18 01:09:27 来源:oir作者:oir