未捕获TypeError:无法读取未定义的属性'length' [英] Uncaught TypeError: Cannot read property 'length' of undefined
本文介绍了未捕获TypeError:无法读取未定义的属性'length'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个插件可以访问许多元素上的长度
属性。但是,javascript控制台指向jquery.min.js的第12行。
I have a plugin that access the length
property on many elements. However, the javascript console points to line 12 of jquery.min.js.
我如何回溯跟踪我的插件中的违规行?
How can I backtrace to find the offending line in my plugin?
推荐答案
我如何追溯到我的插件中找到违规行?
How can I backtrace to find the offending line in my plugin?
firebug 是调试的好方法那些错误。
firebug is great way to debug those errors.
alt text http://blog.getfirebug.com/wp-content/uploads/2010/05/disable-debugger-keyword.png
这篇关于未捕获TypeError:无法读取未定义的属性'length'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文