/**
* 判断是否需要更新软件
*/
isUpdate() {
uni.request({
url: this.cxUrl + "versionInfo/getAppVersion",
success: (res) => {
var newVer = res.data.data.versionName;
var wgtVer;
plus.runtime.getProperty(plus.runtime.appid,function(inf){
wgtVer=inf.version;
wgtVer= wgtVer.replace(".", '').replace(".", '');
newVer = newVer.replace(".", '').replace("."
检测版本更新(uniapp)
最新推荐文章于 2024-05-07 10:48:00 发布