getContext(component?: Object):Context 参数为@Component修饰的页面,entryAbility中不支持,在ability内可使用this.context 直接获取,getContext参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-getcontext-V5
getContext(component?: Object):Context 参数为@Component修饰的页面,entryAbility中不支持,在ability内可使用this.context 直接获取,getContext参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-getcontext-V5