JS 对java返回的json格式的数据处理
var dataObj=eval("("+res+")");
alert(dataObj.billBuy)
//res是如下的数据
{"billBuy":"1001BRNO1102160002","stkid":"","timeBk":"","timeBuy":"","typeBuy":"","value":"60","valueBk":"0","valueLeft":"60","wayBk":""}
var dataObj=eval("("+res+")");
alert(dataObj.billBuy)
//res是如下的数据
{"billBuy":"1001BRNO1102160002","stkid":"","timeBk":"","timeBuy":"","typeBuy":"","value":"60","valueBk":"0","valueLeft":"60","wayBk":""}