this.onMetaChange is undefined

1、
报错:
this.onMetaChange is undefined
http://localhost:8080/ExtStudy/extjs/ext-all.js
Line 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({

posted @ 2010-10-20 13:26  qiang.xu  阅读(414)  评论(1编辑  收藏  举报