columns[0] = {id: 'FWGD39',header: '工单号',hidden:false, width: 120, sortable: true, dataIndex: 'FWGD39'};fields[1] = {name: 'FWSQ07'};columns[1] = {id: 'FWSQ07',header: '服务类型',hidden:false, width: 60, sortable: true, dataIndex: 'FWSQ07',renderer:showFWLX};fields[2] = {name: 'FWSQ12'};columns[2] = {id: 'FWSQ12',header: '紧急度',hidden:false, width: 60, sortable: true, dataIndex: 'FWSQ12',renderer:showJJD};fields[3] = {name: 'FWGD40'};columns[3] = {id: 'FWGD40',header: '受理状态',hidden:false, width: 60, sortable: true, dataIndex: 'FWGD40',renderer:showSLZZ};fields[4] = {name: 'SPXX02'};columns[4] = {id: 'SPXX02',header: '商品代码',hidden:true, width: 120, sortable: true, dataIndex: 'SPXX02'};fields[5] = {name: 'SPXX04'};columns[5] = {id: 'SPXX04',header: '商品名称',hidden:false, width: 120, sortable: true, dataIndex: 'SPXX04'};fields[6] = {name: 'KHZL02'};columns[6] = {id: 'KHZL02',header: '客户姓名',hidden:false, width: 120, sortable: true, dataIndex: 'KHZL02'};fields[7] = {name: 'KHZL15'};columns[7] = {id: 'KHZL15',header: '客户名称',hidden:false, width: 80, sortable: true, dataIndex: 'KHZL15'};fields[8] = {name: 'KHDQ02'};columns[8] = {id: 'KHDQ02',header: '客户住址',hidden:false, width: 160, sortable: true, dataIndex: 'KHDQ02'};fields[9] = {name: 'KHZL06'};columns[9] = {id: 'KHZL06',header: '客户电话',hidden:false, width: 90, sortable: true, dataIndex: 'KHZL06'};fields[10] = {name: 'KHZL07'};columns[10] = {id: 'KHZL07',header: '其他电话',hidden:false, width: 90, sortable: true, dataIndex: 'KHZL07'};fields[11] = {name: 'KHZL10'};columns[11] = {id: 'KHZL10',header: '性别',hidden:false, width: 60, sortable: true, dataIndex: 'KHZL10',renderer:showSEX};fields[12] = {name: 'FWSQ04'};columns[12] = {id: 'FWSQ04',header: '预约时间',hidden:false, width: 130, sortable: true, dataIndex: 'FWSQ04'};fields[13] = {name: 'FWGD17'};columns[13] = {id: 'FWGD17',header: '工单类型',hidden:false, width: 60, sortable: true, dataIndex: 'FWGD17',renderer:showGDLX};fields[14] = {name: 'FWGD23'};columns[14] = {id: 'FWGD23',header: '受理对象',hidden:false, width: 60, sortable: true, dataIndex: 'FWGD23',renderer:showSLDX};fields[15] = {name: 'FWSQ10'};columns[15] = {id: 'FWSQ10',header: '报单人',hidden:false, width: 65, sortable: true, dataIndex: 'FWSQ10'};fields[16] = {name: 'FWSQ11'};columns[16] = {id: 'FWSQ11',header: '报单人电话',hidden:false, width: 90, sortable: true, dataIndex: 'FWSQ11'};fields[17] = {name: 'FWSQ36'};columns[17] = {id: 'FWSQ36',header: '入库单号',hidden:false, width: 120, sortable: true, dataIndex: 'FWSQ36'};
这样的怎么解析请教一下?
我只要里面的中文 内容
http://www.cnblogs.com/jianrong-zheng/p/3217228.html,自己去看看,希望对你有所帮助
参照Json解析,可以用eval
循环DataTable,然后反序列话Json
JSON 序列化
反序列化