HarmonyOS鸿蒙Next中如何查询设备的SDK版本等信息
HarmonyOS鸿蒙Next中如何查询设备的SDK版本等信息 解决措施
使用deviceInfo模块获取SDK版本等信息。
import { deviceInfo } from '@kit.BasicServicesKit';
let distributionOSApiVersion: number = deviceInfo.distributionOSApiVersion;
console.info('the value of the deviceinfo distributionOSApiVersion is :' + distributionOSApiVersion);
参考链接
更多关于HarmonyOS鸿蒙Next中如何查询设备的SDK版本等信息的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复