var jsonData="[{"nickname":"dwede"},{"address":"dqwdqw"},{"phone":"13701652601"},{"checkInMoney":"3539483.82"},{"volumeOutMoney":"1994165.3"},{"bindDeviceNum":"6"},{"storeNum":"513"}]";
var jsonObj=eval('(' + jsonData + ')');
var html="";
$.each(jsonObj, function (index,item){
html+="
"+item.nickname+""+item.address+""+item.phone+""+item.checkInMoney+""+item.volumeOutMoney+""+item.bindDeviceNum+""+item.storeNum+"";});
if(html.length>0){
var tableHeld="
昵称地址手机号进货金额卖货金额绑定盒子数量库存数量";$("#detail").html("
")}
});
$.ajax({
headers: {
contentType: "application/json; charset=utf-8",
Accept: "application/json; charset=utf-8",
},
url:"http://47.106.209.24:8773/manager/user/getUserList",
type:"POST",
data:{
"userid":{
"pageNum": 0,
"pageSize": 10,
"nickname": "dwede",
"phone": "13701652601",
"address": "dqwdqw",
"bindDeviceNum": 6,
"checkInMoney": 3920773.43,
"volumeOutMoney": 2214646.67,
"storeNum": 569
}
},
dataType:"json",
async: false,
success:function(jsonObj){
var html="";
$.each(jsonObj, function (index,item){
html+="
"+item.nickname+""+item.address+""+item.phone+""+item.checkInMoney+""+item.volumeOutMoney+""+item.bindDeviceNum+""+item.storeNum+"";});
if(html.length>0){
var tableHeld="
昵称地址手机号进货金额卖货金额绑定盒子数量库存数量";$("#detail").html("
")}
},
同问为什么显示出undefined?