编程语言
首页 > 编程语言> > 小程序 以入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 即可

标签:Behaviors,computed,should,Behavior,报错,behavior
来源: https://blog.csdn.net/qq_39287602/article/details/118853845