在hbuilder里,获取app的版本号是:plus.runtime.appid
那么在uni-app里,怎样获取app的版本号?

杜林
- 发布:2019-03-21 10:35
- 更新:2021-05-12 14:13
- 阅读:21624

3***@qq.com - 一枚前端开发程序猿
plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
console.log(JSON.stringify(wgtinfo));
console.log(wgtinfo.version);//应用版本号
})
1***@qq.com
正解
2020-09-14 16:22