简体   繁体   English

iphone,ipad,android javascript print()

[英]iphone, ipad, android javascript print()

I'm trying to make my website iphone/ipad/android friendly. 我正在努力使我的网站iphone / ipad / android友好。

Now, is there any way to make the javascript .print() function work on any of these devices? 现在,有没有办法让javascript .print()函数在任何这些设备上运行? Couldn't find an answer on this subject. 无法找到关于这个主题的答案。

Looking forward to your replies, Thank You in advance. 期待您的回复,谢谢您的提前。

The function window.print() will work if you are using iOS 4.2 or later because that version adds AirPrint support . 如果您使用iOS 4.2或更高版本 ,则函数window.print()将起作用,因为该版本增加了AirPrint支持

Android phones don't seem to have native support for printing yet however you might be interested in reading about Cloud Print . Android手机似乎没有原生支持打印,但您可能有兴趣阅读有关云打印的内容 However that solution requires a "cloud enabled" printer. 但是,该解决方案需要“支持云”的打印机。

Javascript函数print()可以在iPhone和iPad上正常工作。

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

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