microsoft jscript运行时错误'jquery'未定义 [英] microsoft jscript runtime error 'jquery' is undefined

查看:80
本文介绍了microsoft jscript运行时错误'jquery'未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个项目中,我遇到了这样的错误:微软jscript运行时错误'jquery'未定义,只需按下代码:

In one of my project, I got such an error: microsoft jscript runtime error 'jquery' is undefined by hitting the code:

$jQuery.support.cors = true;



实际上,我确实有参考:


Actually, I did have the reference:

<script src="http://code.jquery.com/jquery-1.10.2.js"  type="text/javascript" />



另一个项目,我使用相同的代码,它运行正常。

可能的原因是什么?谢谢。


In another project, I used the same code and it run fine.
What's the possible reason for it? Thanks.

推荐答案

jQuery.support.cors = true ;
jQuery.support.cors = true;



实际上,我确实有参考:


Actually, I did have the reference:

<script src="http://code.jquery.com/jquery-1.10.2.js"  type="text/javascript" />



另一个项目,我使用相同的代码,它运行正常。

可能的原因是什么?谢谢。


In another project, I used the same code and it run fine.
What's the possible reason for it? Thanks.



是jQuery的别名,所以你只需要使用
is an alias for jQuery, so you would just use

这篇关于microsoft jscript运行时错误'jquery'未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆