[英]How include custom javascript library to google site?
Please, help include custom javascript library "jquery-EmbedPicasaGallery.js" to google site. 请帮助将自定义JavaScript库“ jquery-EmbedPicasaGallery.js”添加到Google网站。 I tried 3 methods and always have error:
我尝试了3种方法,但始终会出错:
failed to load external url jquery-EmbedPicasaGallery.js
I tried: 我试过了:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://googledrive.com/host/0BziEumkvYpL6Ql9NRFhET2FXM1E/jquery-EmbedPicasaGallery.js"></script>
<script type="text/javascript" src="https://docs.google.com/uc?id=0BziEumkvYpL6ZmlHZ2FWQ1NrVG8"></script>
<script type="text/javascript" src="https://docs.google.com/uc?id=0BziEumkvYpL6ZmlHZ2FWQ1NrVG8&export=download"></script>
Have you tried downloading the script and running it from your own server? 您是否尝试过下载脚本并从自己的服务器运行它?
Is your site being tested on a server, or locally? 您的网站是在服务器上还是在本地进行测试?
It is common for errors to occur when attempting certain things locally, so make sure to run on a server, especially in cases involving php
, ajax
, canvas image data
, http headers
, and cookies
, to name a few. 在本地尝试某些操作时,通常会发生错误,因此请确保在服务器上运行,尤其是在涉及
php
, ajax
, canvas image data
, http headers
和cookies
的情况下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.