找不到变量:$(Can't find variable: $)
var scriptFile = $(tempNode).attr("customJScriptSrc");
通过这个我得到
“参考错误:找不到变量:$”
请提出我任何替代方法。
var scriptFile = $(tempNode).attr("customJScriptSrc");When passing this i get
“Reference Error: Can’t find variable: $”
Kindly suggest me any alternative methods.
最满意答案
添加这个脚本:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>在文档的顶部(在您的javascript代码之前添加)。
或下载库并在代码中引用它。
add this script:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>at top of the document(added before your javascript code).
or download the library and reference it in you code.
更多推荐
发布评论