5***@qq.com
5***@qq.com
  • 发布:2020-04-14 14:52
  • 更新:2020-04-14 18:47
  • 阅读:1568

uni-app + typescript 如何使用计算属性

分类:uni-app

computed:{
addtest(){
return true
}
}
会报错:Property 'computed' has no initializer and is not definitely assigned in the constructor.

2020-04-14 14:52 负责人:无 分享
已邀请:
f***@126.com

f***@126.com - I'm the rookie for web of Html

TS的写法不是要这样写的么
private get xxxx (){
return xxxx
}吗?没有内置的computed好像

该问题目前已经被锁定, 无法添加新回复