在自定义组件中打印数据的问题?
properties:{ category:String, category_sub:String} |
category是通过properties传递值了的。
在自定义组件的attached周期内console.log(this.data),返回

这里并没有显示,但展开后
却显示是存在的。
而且如果打印console.log(this.data.category)或console.log(this.properties.category),返回的也是空值,可是它明明已经传递过来了啊,而且在模板里也是有效的
<view wx:if="{{category}}">{{category}}</view> //生效了 |
使用的开发工具是最新的开发版的
