var nodeInfo = Ext.JSON.decode(['{total:1,', 'result:[{cname:"', treedata.cname, '",cidver:"', treedata.cidVer, '",supplier:"',treedata.supplier, '",responsibleName:"', treedata.responsibleName, '", cmpNo: "', treedata.csymbol,'", quality: "', treedata.quantity, '", weight: "', treedata.weight,'"}]}'].join(''), true);
一定要记得拼上=、=!写此贴来告诫自己别犯低端错误。
本文介绍了一个使用JavaScript进行JSON数据解析的具体实例,展示了如何通过字符串拼接构造JSON对象,并强调了在编码过程中避免常见错误的重要性。
344

被折叠的 条评论
为什么被折叠?



