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({
this.onMetaChange is undefined
最新推荐文章于 2024-06-28 17:19:07 发布