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({

相关文章:

  • 2022-12-23
  • 2021-09-11
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2021-11-07
  • 2021-07-25
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案