asp 网站访问统计,娄底网站建设开发,我的钢铁网网站架构,网站开发可能存在的困难一般处理服务器传来的json值时#xff0c;我们都会用两种方式进行处理#xff1a;
1.一种为使用eval()函数。var dataObjeval((data));//转换为json对象#xff08;注#xff1a;data为json数据#xff09;#xff1b;
2. 使用Function对象来进…一般处理服务器传来的json值时我们都会用两种方式进行处理
1.一种为使用eval()函数。var dataObjeval((data));//转换为json对象注data为json数据
2. 使用Function对象来进行返回解析。var json (new Function(,return data))();
转载自http://www.php.cn/js-tutorial-382630.html