由于现在公司所有项目开发要用ExtJS来做前台展示,所以不得不自学,不然就得面临被自我淘汰了。

估计可能报同样的错但却不是同样的原因,不过保存下来还是可以作为下一次寻找原因的第一思路。^_^
1、
报错:

this.onMetaChange is undefined
http://localhost:8080/ExtStudy/extjs/ext-all.jsLine 10451
原因:
 var ds =  Ext.data.Store({
  proxy:new Ext.data.ScriptTagProxy({
   url:'http://extjs.com/forum/topics-remote.php'
  }),
  reader:new Ext.data.JsonReader({
   root:'topics', 
   totalProperty:'totalCount', 
   id:'post_id'
  },[
   {name:'postId',mapping:'post_id'},
   {name:'title',mapping:'topic_title'},
   {name:'topicId',mapping:'topic_id'},
   {name:'author',mapping:'author'},
   {name:'lastPost',mapping:'post_time',type:'date',dateFormat:'timestamp'},  //"post_time":"1267062772"
   {name:'excerpt',mapping:'post_text'}
  ]),
  baseParams:{limit:20,forumId:4}
 });
中 var ds =  Ext.data.Store({这行代码少了一个"new" ,修改为:
 var ds =  new Ext.data.Store({

2、
报错:
Ext.Container.LAYOUTS[this.layout.toLowerCase()] is not a constructor
http://localhost:8080/ExtStudy/extjs/ext-all.jsLine 13853
原因:layout:'cloumn'该布局不存在
      中的拼写错误,应为:layout:'column'