[英]Alternative to Window.Print()
I want to create a print button so that when it is pressed, it prints the whole webpage. 我想创建一个打印按钮,以便在按下该按钮时可以打印整个网页。 I am currently using Window.print() of javascript.
我目前正在使用JavaScript的Window.print()。 But I ran into error;
但是我遇到了错误; when ever i press the print button more than once, the link stops working.
每当我多次按下打印按钮时,链接就会停止工作。 What is the problem with it ?
有什么问题吗? Is there an alternative to this in jquery or any other ?
在jquery或任何其他方法中,是否有替代方法? I am using grails 1.3.7.
我正在使用grails 1.3.7。 Thanks
谢谢
window.print()
的另一种方法是
document.execCommand('print');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.