setting data field "xxx" to undefined
正常获得request返回值了(后台log可以看得到),在setData时,开发者工具上是正常的,返回结果显示到页面上,但上传后在手机端打开,报“setting data field "xxx" to undefined is invalid"的错。开发者工具里是没报错的,不知道是什么情况引起的。 返回值如下:{"dataList":[{"id":"1","user_id":"12345678901","user_name":"张先生","booking_course":"电子积木","booking_status":"申请成功","booking_answer_time":"","booking_teacher":"客服","booking_teacher_phone":"12345678"}]} 开发者工具正常显示数据(下面一行): [图片] 手机端的报错(打开调试): [图片] [图片] 源码是: Page( { data: { courseList:{}, ...... success: function (res) { that.setData({ courseList: res.data.data }); } 不知道是什么原因引起的,在开发者工具里正常setdata,在手机上却报错? 哪位先行者帮忙解答下,万分感谢