转载:http://blog.sina.com.cn/s/blog_7778950d0100xgel.html
使用 Ext.data.Record.create创建Record时总是报错,最后解决方法:如下
Ext.regModel("Student",{
fields:[
{name:"name",type:"string"},
{name:"class",type:"string"}
]
});
var student=new Student({
name:"Jerry",
class:"2"
});