请求后台获取json:
{"success":true,"datamap":{"rebackName":"振勋"}}
ajax回调函数解析:
success:function(data){ var obj=eval('('+data+')'); var rebackName=obj.datamap.rebackName; alert('上报'+rebackName+'成功!'); }