转载: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"
});
ExtJS Record创建详解
本文介绍了在ExtJS中使用Ext.data.Record.create创建Record时遇到的问题及解决方案。通过注册模型并定义字段类型,成功解决了创建过程中的错误。
798

被折叠的 条评论
为什么被折叠?



