Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有便笺打印机的屏幕,我希望用户能够自动打印而无需确认。如何在不打开打印对话框的情况下通过 Chrome 中的 Java Script 或 JQuery 进行打印?
我认为在单击按钮上,您只需调用 window.print() 函数。
<a href='#' id='PrintPage' onclick='window.print();'> Click Here For Printing</a>
我希望这能解决您的问题。