我的值如下,从php请求返回,所以它是一个字符串。我如何(转换为普通对象)将其放入下面的数据中?将字符串转换为普通对象
"fieldName: \"ABC\", skill: \"1002\""
jQuery.ajax({
type: 'GET',
url: setting_url,
data: {},
success: function (result) {},
error: function (xhr, ajaxOptions, thrownError) { },
complete: function() { }
});
哪些数据和字符串是什么? – hjpotter92
响应是什么样的? JSON? –
数据在jQuery.ajax中,字符串为“fieldName:\”ABC \“,skill:\”1002 \“” –