1. 什么是behaviors
image.png2. behaviors的工作方式
image.png3. 创建 behavior
image.png image.png4. 导入并使用 behavior
image.png image.png5. behavior中所有可用的节点
image.png6. 同名字段的覆盖和组合规则*
image.png关于详细的覆盖和组合规则,大家可以参考微信小程序官方文档给出的说明:
https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/behaviors.html
网友评论