Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Google Cloud Print Web元素可以工作,但不能在Google Chrome for iOS上运行_Javascript_Html_Google Chrome_Google Cloud Print_Chrome Ios - Fatal编程技术网

Javascript Google Cloud Print Web元素可以工作,但不能在Google Chrome for iOS上运行

Javascript Google Cloud Print Web元素可以工作,但不能在Google Chrome for iOS上运行,javascript,html,google-chrome,google-cloud-print,chrome-ios,Javascript,Html,Google Chrome,Google Cloud Print,Chrome Ios,我使用GCP Web元素在我的Web应用程序上发布要打印的项目,下面是谷歌建议的代码 JavaScript <script src="http://www.google.com/cloudprint/client/cpgadget.js"> </script> <script> window.onload = function() { var gadget = new cloudprint.Gadget(); gadget.setPrintButton(

我使用GCP Web元素在我的Web应用程序上发布要打印的项目,下面是谷歌建议的代码

JavaScript

<script src="http://www.google.com/cloudprint/client/cpgadget.js">
</script>
<script>
window.onload = function() {
var gadget = new cloudprint.Gadget();
gadget.setPrintButton(
        cloudprint.Gadget.createDefaultPrintButton("print_button_container")); //div id to contain the button
gadget.setPrintDocument("url", "Test Page", "http://www.google.com/landing/cloudprint/testpage.pdf");
}
</script>

window.onload=函数(){
var gadget=new cloudprint.gadget();
gadget.setPrintButton(
cloudprint.Gadget.createDefaultPrintButton(“打印按钮容器”);//包含按钮的div id
setPrintDocument(“url”,“测试页”http://www.google.com/landing/cloudprint/testpage.pdf");
}
HTML

<div id="print_button_container"></div>

这一切都很好,它发布的文件很好,它打印在。。。Android 3.2上的浏览器、Windows上的Google Chrome和iOS上的Safari

但是,它不会将文档发布(因此也不会打印)到Google Chrome for iOS上

这毫无意义,因为谷歌为iOS制作了Chrome浏览器,还制作了云打印

有人知道如何解决这个问题,还是我只需要等待谷歌在Chrome for iOS中解决它