json对象 var recordsParams ={}; var records1 = Ext.getCmp('Grid1').getChangedRecords('Grid1');//json对象 var obj1 = eval("("+records1.Grid1_insertRecords+")"); var sxqsrq = obj1[0].sxqsrq;
若是json字符串
使用eval("("+jsonStr+")")先转成对象,再用对象进行操作;
json对象 var recordsParams ={}; var records1 = Ext.getCmp('Grid1').getChangedRecords('Grid1');//json对象 var obj1 = eval("("+records1.Grid1_insertRecords+")"); var sxqsrq = obj1[0].sxqsrq;
若是json字符串
使用eval("("+jsonStr+")")先转成对象,再用对象进行操作;