互联网探索jquery的问题 [英] internet Explore Problem with jquery

查看:87
本文介绍了互联网探索jquery的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






我在mvc中有项目,当我在Internet Explorer中运行它给我一个错误(JavaScript运行时错误:无法获取属性' appendChild'的undefined或null引用)。



相同的代码在chrome中运行没有问题





并且使用Internet Explorer在其他系统中运行相同的代码没有问题,



i使用了Internet Explorer 8,9,10,11我恢复了视觉效果工作室也在使用VS2010,





i我找不到VS2010问题还是我的系统问题,





请帮我解决这个问题

解决方案

这不是属性,而是一个属性方法:

http://www.w3schools.com/jsref/met_node_appendchild.asp [ ^ ]。



如果你在没有参数列表的情况下使用它,它就无法工作:解释器将其解释为无法找到的属性(除非你自己定义这样的属性,这几乎不是一个例子。)



如果你的观察是正确的,我不知道为什么它在Chrome中有用。我其实怀疑他们是对的。更有可能的是,你的代码是错误的,就是这样。顺便说一下,下次请提供一个全面的代码示例,可以立即用来重现问题。



-SA

Hi

I have project in mvc when i run in internet explorer it give me error like( JavaScript runtime error: Unable to get property 'appendChild' of undefined or null reference).

the same code runs in chrome without problem


And the same code run in other systems using internet explorer without problem,

i used internet explorer 8,9,10,11 i reinstated visual studio also i am using VS2010,


i am not able find that it VS2010 problem or my System problem ,


please help me out with this

解决方案

This is not a property, but is a method:
http://www.w3schools.com/jsref/met_node_appendchild.asp[^].

If you use it without argument list, it cannot work: the interpreter interpret it as a property which cannot be found (unless you define such property yourself, which is hardly a case).

I have no idea why it works in Chrome, if your observations are correct. I actually doubt they are correct. Much more likely, your code is wrong, that's it. By the way, next time please provide a comprehensive code sample which can be used immediately to reproduce the problem.

—SA


这篇关于互联网探索jquery的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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