1、Ext.data.JsonStore的配置项中root 和 totalProperty 有什么用:

两个配置分别表示了两个参数

如: totalproperty: "results",
 root:"rows" 
表示后台传过来的参数以results开始的为数据的总条数,以rows里的数据表示真实的数据
对应后台数据json的表示为:{results:12,rows[{id:1,name:chenjun198812},{id:2,name:chenjun1988121}]}

相关文章: