uniapp开发app获取版本号

plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
  console.log(wgtinfo)

    wgtinfo.version; //1.1.6
    wgtinfo.versionCode; //116

}

 

posted on 2022-01-12 10:35  天空中的云~飞起来了  阅读(876)  评论(0)    收藏  举报