小程序 以入computed报错:Behaviors should be constructed with Behavior()

小程序引入computed报错:Behaviors should be constructed with Behavior()

小程序 以入computed报错:Behaviors should be constructed with Behavior()

 解决方案:

const computedBehavior = require('miniprogram-computed').behavior

在引入后面加上.behavior 即可

上一篇:从零开始学VUE之组件化开发(注册父子结构组件)


下一篇:英语语法