日期:2014-05-16  浏览次数:20297 次

extJs中常见的错误

extJs常见错误:

?

当发生a或者是e错误时:
1、判断新增的地方是否有两个并列的",,"
当发生g错误时:
1、看下是否是定义了window但是为调用其show()方法;
2、定义窗体的closeAction方法为close,但是却引用了窗体的hide方法;
?
问题1、 Node cannot be inserted at the specified point in the hierarchy
?
当发现无法获取到form表单中的值时:
1、看下布局中用到的是否是layout:'form',如果是xtype:'form'则无法获取值
?
当发生this.addEvents is not a function错误时
1、对于某个ext的对象未使用new方法
?
b[e] is not a constructor
检查xtype对于的属性值是不是写错了;
syntaxError:JSON.parse:bad control character in string literal
特殊符号引起,例如\r ,\n,\t之类的
str.replace(/(^\s*)|(\s*$)/g, "")