我正在使用jQuery parseJSON函数做一些事情。
这是代码,但无效
<script>
function uploadPictureimage(file, data, id){
console.log(data);
var data = $.parseJSON(data);
<script>
我得到“Uncaught SyntaxError:Unexpected token”。
像这样的console.log的结果
{
"id": "18668",
"path": "/Uploads/Picture/2016-03-29/56fa7d8da1480.jpg",
"url": "",
"md5": "e4fcdc5209daf91b77f061bf9a71403a",
"sha1": "b83d35bcdbe01fdbeec1bc7f238eb88d21cf8466",
"status": 1,
"create_time": "1459256717",
"info": "\u4e0a\u4f20\u6210\u529f",
"data": ""
}