小程序页面能展示id数据,但是在JSonshow方法里面值却是空的, 怎么回事啊 ?

发布于 8 年前作者 songgang12649 次浏览最后编辑 8 年前来自 ask
 let  that = this;
    console.log("id=", that.data._id);   id等于空, 页面能显示值 什么鬼  在onload方法里面有setdata  id 
1 回复
gongping
gongping1 楼6 年前

你好,请提供能复现问题的简单代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

--↓↓👍如果觉得有帮助的话请点个【赞】吧(唏嘘也有小尾巴了,可惜是假的)