获取uniapp版本号

plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
console.log(wgtinfo);
console.log(wgtinfo.version);   //版本号
})

需要真机测试

原文地址:https://www.cnblogs.com/wpTing/p/11602383.html