data ="<pre style="word-wrap: break-word; white-space: pre-wrap;">{"result":1,"Msg":"上传成功!"}</pre>"
var obj = jQuery.parseJSON(jQuery(data).text());
obj={"result":1,"Msg":"上传成功!"}
{"result":1,"Msg":"上传成功!"}" var obj = jQuery.parseJSON(jQuery(data).text());obj={"result":1,"Msg":"上传成功!"}转载于:..._转换为json">
标签的json转换成js
赞
踩
转换为json
data ="<pre style="word-wrap: break-word; white-space: pre-wrap;">{"result":1,"Msg":"上传成功!"}</pre>"
var obj = jQuery.parseJSON(jQuery(data).text());
obj={"result":1,"Msg":"上传成功!"}
转载于:https://www.cnblogs.com/lhlong/p/6233156.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。