简体   繁体   English

如何使用 javascript 或 JQuery 绕过打印对话框..?

[英]how to bypass print dialog box using javascript or JQuery..?

Normally window.print() is used printing webpage, it trigger print dialog box of browser.通常window.print()用于打印网页,它触发浏览器的打印对话框。

Now my question is how can we bypass this printing dialog box and directly print the web page?现在我的问题是如何绕过这个打印对话框直接打印网页? is there any way by I could avoid to click on OK button?有什么办法可以避免点击确定按钮?

Nowdays I believe you could avoid the print dialog from any application by using some cloud printing REST API.现在,我相信您可以通过使用一些云打印 REST API 来避免任何应用程序的打印对话框。 So far I only know of PrintNode and Google Cloud Print:到目前为止,我只知道 PrintNode 和 Google Cloud Print:

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM