json数据:
{"total":7,"rows":[
{"schoolid":"1","schoolname":"adsgdsag","address":"sadfdsafdsaf"},
{"schoolid":"2","schoolname":"asdg","address":"sadfdsafdsaf"},
{"schoolid":"3","schoolname":"adsg","address":"sadfdsafdsaf"},
{"schoolid":"4","schoolname":"adsg","address":"sadfdsafdsaf"},
{"schoolid":"5","schoolname":"adsg","address":"sadfdsafdsaf"},
{"schoolid":"6","schoolname":"adsg","address":"sadfdsafdsaf"},
{"schoolid":"7","schoolname":"adsg","address":"sadfdsafdsaf"},
]}
这串json数据,在easyui datagrid里显示不了。
查原因查了很长时间,最后用demo中的例子,一遍遍的试。
终于找到原因。最后带了一个逗号。
去掉就可以显示了。
写篇日志惊醒自己,一个逗号就可以浪费我一两天的时间。。。。。。
这也是界面出错的一个常见原因。