observers相关疑问?

发布于 7 年前作者 bli7020 次浏览最后编辑 7 年前来自 issues
在组件内使用observers, 如果传入组件的值和组件中定义的初始值相同是不是不会触发observers?

组件页面

使用组件页面

1 回复
guiying58
guiying581 楼5 年前

你好, 请查阅相关文档(https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/observer.html), 即使相同照样会触发