getContext 提示错误,Cannot find name 'getContext'

根据现场发现该方法开发者使用ts文件中,导致找不到该方法,该方法是特有方法。ts文件中是没有的。

HarmonyOS
2024-05-30 20:04:25
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
hmogy

将ts文件改为ets文件,问题解决。

分享
微博
QQ
微信
回复
2024-05-31 20:32:40


相关问题
HarmonyOS Cannot find name 'ESObject'
1004浏览 • 0回复 待解决
HarmonyOS getContext()获取不到
1290浏览 • 1回复 待解决
HarmonyOS getContext方法时机问题
1213浏览 • 1回复 待解决
HarmonyOS Worker中怎么获取getContext()
814浏览 • 1回复 待解决
使用featureAbility.getContext()时报错如下
1843浏览 • 1回复 待解决
缺失getcontext函数导致breakpad编译失败
1630浏览 • 1回复 待解决
HarmonyOS 封装一个公用的getContext()
800浏览 • 1回复 待解决
getContext(this)能否在自定义类中使用
3127浏览 • 1回复 待解决
getContext传入this和不传入有什么区别
1540浏览 • 1回复 待解决