Window.print()摘要打開列印視窗來列印當前的文件。語法window.print() 注釋Starting with Chrome V46.0 this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.規範SpecificationHTML Standard # printing參見 Printing window.onbeforeprint window.onafterprint