从服务器检索数据后,不会渲染jqGrid

| 从服务器检索数据后,无法在jqGrid中显示数据。 jqGrid显示“正在加载”消息,但是在完成加载后不显示数据。
    $(\"#list27\").jqGrid({
        url: \'/server/getdata.do?name=afonso\',
        datatype: \"json\",
        height: 355,
        width: 750,
        colNames:[\'Email\',\'Name\', \'Empno\', \'Notes\'],
        colModel:[
            {name:\'email\', width:200},
            {name:\'name\', width:200},
            {name:\'empno\', width:100},
            {name:\'notes\', width:250}
        ],
        viewrecords: true,
        sortorder: \"asc\",

    caption: \"Loading data from server at once\" 
});
    
已邀请:
检查JavaScript错误(#1 罪魁祸首) 检查
url:
\'/server/getdata.do?name=afonso\',
确保它实际上是 返回正确的数据。     

要回复问题请先登录注册