小程序页面能展示id数据,但是在JSonshow方法里面值却是空的, 怎么回事啊 ?
发布于 6 年前 作者 songgang 12513 次浏览 来自 问答
 let  that = this;
    console.log("id=", that.data._id);   id等于空, 页面能显示值 什么鬼  在onload方法里面有setdata  id 
1 回复

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

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

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

回到顶部