0

当我使用这段代码时:

$("#flex1").flexigrid({
    colModel : [
            {display :'Customer ID',name : 'customer_id',width : 100,sortable : true,align : 'left'}, 
            {display :'Customer Full Name',name : 'customer_fullname',width : 130,sortable : true,align : 'left'}, 
            {display : 'Admin License No',name : 'admin_license_number',width : 130,sortable : true,align : 'left'}, 
            {display : 'Admin License Key',name : 'admin_license_key',width : 130,sortable : true,align : 'left'}, 
            {display : 'User License Number',name : 'user_license_number',width : 130,sortable : true,align : 'left'}, 
            {display : 'ska2',name : '',width : 130,sortable : true,align : 'left'}, 
            ],
    sortname: "customer_id",
    sortorder: "asc",
    usepager: true,
    title: 'List',
    useRp: true,
    rp: 10,
    showTableToggleBtn: true,
    width: 1000,
    height: 500,
});

发生错误并且不显示任何内容:

错误:应为标识符、字符串或数字。

现在我正在使用 PHP4 并在上面的 PHP5 上尝试后尝试实现。

4

1 回答 1

2

我假设您正在 IE8 或更低版本中进行测试,并且您的对象中的那些尾随逗号是错误的:

例如,

 height: 500, <--
});
于 2011-10-18T04:39:28.520 回答