如何在小工具中加载jquery。 [英] How to load jquery in gadget.
本文介绍了如何在小工具中加载jquery。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我有一个小数据可以在json中检索员工的详细信息。我创建了一个小工具。当我运行html页面时,数据显示在网页中。虽然为小工具创建的代码无法加载jquery服务引用。
Hello,
I have a small data which retrive employee details in json. i have created a gadget. when i run the html page the data is shown in webpage. Whereas the code created to gadget it was unable to load jquery service reference.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
function DoInit() {
Get_Indus_Widget();
}
//document.onload = init();
//function init() {
// Get_Indus_Widget();
//}
function Get_Indus_Widget() {
$("#tbDetails").append("Started request for data");}
推荐答案
( #tbDetails)。append( 已开始请求数据);}
("#tbDetails").append("Started request for data");}
了解它是如何工作的 - http://jsfiddle.net/taditdash/3xebnn1f/ [ ^ ]。
See how it is working - http://jsfiddle.net/taditdash/3xebnn1f/[^].
function DoInit() {
这篇关于如何在小工具中加载jquery。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文