1.模拟ajax请求,后台拿到数据
2.绑定数据到页面
3.页面无数据
尝试打印data数据
console.log("数据绑定: "+ that.data.result)
打印结果
采用JSON.stringify() 将JS值或对象或数组转换为JSON字符串打印。
console.log(JSON.stringify(res.result))
数据正常
则为页面问题
修改了wx:for后显示正常
1.模拟ajax请求,后台拿到数据
2.绑定数据到页面
3.页面无数据
尝试打印data数据
console.log("数据绑定: "+ that.data.result)
打印结果
采用JSON.stringify() 将JS值或对象或数组转换为JSON字符串打印。
console.log(JSON.stringify(res.result))
数据正常
则为页面问题
修改了wx:for后显示正常