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, "")