如下所示:
var dataObj=eval("("+res+")"); alert(dataObj.billBuy) //res是如下的數據 {"billBuy":"1001BRNO1102160002","stkid":"","timeBk":"","timeBuy":"","typeBuy":"","value":"60","valueBk":"0","valueLeft":"60","wayBk":""}
以上這篇JS 對java返回的json格式的數據處理方法就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持。