首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:Javascript 教程
TRY RUN / 在线示例
Javascript 教程 打印当前页面
Javascript 教程 打印当前页面
源代码
运行
<!DOCTYPE html> <html> <head> <script> function printpage() { window.print(); } </script> </head> <body> <input type="button" value="Print this page" onclick="printpage()" /> </body> </html>
运行结果