可通过获取系统软件API版本做一些兜底操作:let sdkApiVersionInfo: number = deviceinfo.sdkApiVersion; console.info('the value of the deviceinfo sdkApiVersion is :' + sdkApiVersionInfo); https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-device-info-V5
可通过获取系统软件API版本做一些兜底操作:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-device-info-V5