在Internet Explorer 8中运行应用程序时出错 [英] error while run the application in internet explorer 8

查看:77
本文介绍了在Internet Explorer 8中运行应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft JScript运行时错误:对象不支持此属性或方法

in jquery.min.js



如何解决这个问题

Microsoft JScript runtime error: Object doesn't support this property or method
in jquery.min.js

how to solve this problem

推荐答案

这个错误是一个相当普遍的错误,通常有几个不同的原因,但通常的原因是你的jQuery库和相关的脚本试图成为在实际加载之前访问和使用。 (这会导致您的jQuery对象(
This error is a fairly common one that can often have several different causes, however the usual cause is that your jQuery library and related scripts are attempting to be accessed and used prior to actually being loaded. (This would cause any uses of your jQuery object (


)的任何使用不可用,从而无法执行其任何功能。



对此的一个常见解决方案是将实际的必要代码放在内容的最后,就在关闭正文标记< / body>之前。 :



@ Scripts.Render(〜/ bundles / jquery)



< / body> ;



根据您使用的浏览器,您通常可以使用开发人员工具(F12),它可以显示错误本身的位置以及与之相关的其他详细信息。问题(这对任何未来的脚本调试问题都有帮助。)
) to be unavailable and thus unable to perform any of its functions).

A common solution to this would be to actually place your necessary code at the end of your content, just prior to your closing body tag </body> :

@Scripts.Render("~/bundles/jquery")

</body>

Depending on the browser that you are using, you can often use the Developer Tools (F12) which should reveal where the error itself was occurring and additional details related to the issue (which can be helpful for any future script-debugging issues).


这篇关于在Internet Explorer 8中运行应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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