解决jquery报错cannot read property 'length' of undefined

第一种情况:

要把json字符串转换为json对象

var json1=json.parse('str')

第二种情况:

在datagrid里使用时json格式要求要有total和rows

你可能感兴趣的:(easyui)