h5+热更新下载wgt
html5+下载更新包
var dtask =plus.downloader.createDownload("http://192.168.4.41:8096/upgrade/__UNI__EEBDBA7.wgt", {}, function(d, status){ var filePath = plus.io.convertLocalFileSystemURL(d.filename); // uni.showModal({ // content: 'status: '+status+'刮'+filePath, // showCancel: true // }) plus.runtime.install(filePath,{},function(widgetInfo){ uni.showModal({ content: '安装成功', showCancel: true }) plus.runtime.restart() }) }); dtask.start();
浙公网安备 33010602011771号