behavior 就相当于mixin 小程序中的组件component,如果有可以多次利用的组件可以用到behavior,就像sass中的mixin,后者函数,提供一个公共方法 转载于:https://my.oschina.net/u/3373019/blog/1618750