Uniapp 升级包
作者:互联网
uni.downloadFile({ url: data.url, success: (downloadResult) => { if (downloadResult.statusCode === 200) { plus.runtime.install(downloadResult.tempFilePath, { force: true }, function() { console.log('install success...'); uni.$u.toast('系统升级完毕') this.isupdate=false setTimeout(plus.runtime.restart(),2000) }, function(e) { console.log(e) console.error('install fail...'); }); } } });
标签:function,Uniapp,console,log,...,downloadResult,升级包,install 来源: https://www.cnblogs.com/catyxiao/p/16392571.html