首页新闻找找看学习计划

后台给的多行数据,为什么前端只显示一条

0
[已关闭问题] 关闭于 2019-07-08 14:12

$.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
}
},
error: function(data){
alert(data+"----");
},
dataType:"json",
async: false,
success:function(data){
var jsonData ='{"nickname":"dwede","address":"dqwdqw","phone":"13701652601","checkInMoney":"3539483.82","volumeOutMoney":"1994165.3","bindDeviceNum":"6", "storeNum":"513",}';
var jsonObj =eval('(' + jsonData + ')');
document.getElementById("nickname").innerHTML = jsonObj.nickname;
document.getElementById("address").innerHTML = jsonObj.address;
document.getElementById("phone").innerHTML = jsonObj.phone;
document.getElementById("checkInMoney").innerHTML = jsonObj.checkInMoney;
document.getElementById("volumeOutMoney").innerHTML = jsonObj.volumeOutMoney;
document.getElementById("bindDeviceNum").innerHTML = jsonObj.bindDeviceNum;
document.getElementById("storeNum").innerHTML = jsonObj.storeNum;
alert("查询用户列表");
}

唯爱岚天的主页 唯爱岚天 | 菜鸟二级 | 园豆:202
提问于:2019-07-06 17:33
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册