如下所示:
var dataObj=eval("("+res+")");
alert(dataObj.billBuy)
//res是如下的数据
{"billBuy":"1001BRNO1102160002","stkid":"","timeBk":"","timeBuy":"","typeBuy":"","value":"60","valueBk":"0","valueLeft":"60","wayBk":""}
以上这篇JS 对java返回的json格式的数据处理方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持软件开发网。