已解决 作用域原因 解决方法如下
let _this=this;
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo){
if(wgtinfo.version){
_this.version = wgtinfo.version;
}else{
_this.version = plus.runtime.version;
}
});
已解决 作用域原因 解决方法如下
let _this=this;
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo){
if(wgtinfo.version){
_this.version = wgtinfo.version;
}else{
_this.version = plus.runtime.version;
}
});