CK------json的小小知识
从action中将数据通过json传送到前台后,
batchList = iBatchSellConfigInfoService.getBatchSellConfigInfo(this.getUserOID());
JSONArray json = JSONArray.fromObject(batchList);
this.ajaxReturn(json.toString());
前台接收
$.ajax({
type : 'post',
url : url,
data:'date='+new Date(),
dataType : 'json',
async:false,
success : function (json){
这时候判断json中是否有数据不能用length
if(json.le