window.print

概述

打开打印对话框打印当前文档。

语法

window.print()

规范

Specification
HTML Standard
# printing

浏览器兼容性

BCD tables only load in the browser

参见