鸿蒙HarmonyOS获取当前App版本号,话不多说直接上代码
import bundleManager from '@ohos.bundle.bundleManager';
import {
BusinessError } from '@ohos.base';
@Entry
@Component
struct VersionExample {
@State version: string = '';
aboutToAppear() {
this.

最低0.47元/天 解锁文章
2041

被折叠的 条评论
为什么被折叠?



