2024-07-01 02:28:57
var nodes=data.UniqueFun;
这句根本执行不了,alert(data.UniqueFun)为undefined。
在
{"UniqueFun":"FAIL","Load":"PASS","Reliability_err_msg":"none","Reliability":"pass","Security_err_msg":"not support","Security":"fail","Install":"PASS","Load_err_msg":"none","GenerFun_err_msg":"none","Performance_err_msg":"none","GeneralFun":"pass","UniqueFun_err_msg":"none","Performance":"pass","Install_err_msg":"none"}
前面还有一个对象,这是json数据,你可以用firebug查看到,然后将var nodes=data.UniqueFun;改为var nodes=data.对象名;就行了
2024-07-01 02:56:16
2024-07-01 06:45:00
这样alert统统是undefined啊。
这说明你的这段数据看似json,实际还是字符串,不是一个对象。试试将上面一句改一下:
var datas=eval(data);
改成:
var datas=eval("("+data+")");
2024-07-01 00:45:32