本文主要包含andriod studio版本,ios下载andriod下载,andriod/ios,mui版本更新,mui等相关知识,教程希望在学习及工作中可以帮助到您
");
</div>
MUI版本升级更新程序IOS和andriod
- var wgtVer=null;
- function plusReady(){ // 获取本地应用资源版本号
- plus.runtime.getProperty(plus.runtime.appid,function(inf){
- wgtVer=inf.version;
- });
- }
- //休眠方法
- var ver;
- function sleep(numberMillis) {
- var now = new Date();
- var exitTime = now.getTime() + numberMillis;
- while (true) {
- now = new Date();
- if (now.getTime() > exitTime)
- return;
- }
- }
- mui.plusReady(function(){
- plus.runtime.getProperty(plus.runtime.appid, function(inf) {
- ver = inf.version;
- var url= severUlr+'version/gainApkVersion';
- var client;
- var ua = navigator.userAgent.toLowerCase();
- if(/iphone|ipad|ipod/.test(ua)) { //苹果手机
- $.ajax({
- type:"get",
- dataType:'json',
- url:"https://itunes.apple.com/lookup?id=111030274",//获取当前上架APPStore版本信息
- data:{
- id:111030274 //APP唯一标识ID B5教程网
- },
- contentType:'application/x-www-form-urlencoded;charset=UTF-8',
- success:function(data){
- console.log("jsjsjsjs"+json2string(data));
- $.each(data, function(i,norms) {
- $.each(norms, function(key,value) {
- $.each(value, function(j, normItem) {
- if(j=="version"){
- if(normItem>ver){
- &nb