computed:{
addtest(){
return true
}
}
会报错:Property 'computed' has no initializer and is not definitely assigned in the constructor.
5***@qq.com
- 发布:2020-04-14 14:52
- 更新:2020-04-14 18:47
- 阅读:1568
uni-app + typescript 如何使用计算属性
分类:uni-app
f***@126.com - I'm the rookie for web of Html
TS的写法不是要这样写的么
private get xxxx (){
return xxxx
}吗?没有内置的computed好像
5***@qq.com (作者)
好的 感谢
2020-04-15 08:55