plus.downloader.enumerate(function(_thisd){ if(_thisd.length>0) plus.nativeUI.confirm("您有"+_thisd.length+"项下载任务未完成,是否继续下载?", function(e) { if (e.index == 0) { $(_thisd).each(function(){ this.start(); }); } }, "继续下载", ["是", "否"]); });
1 个回复
12312312
plus.downloader.enumerate(function(_thisd){
if(_thisd.length>0)
plus.nativeUI.confirm("您有"+_thisd.length+"项下载任务未完成,是否继续下载?", function(e) {
if (e.index == 0) {
$(_thisd).each(function(){
this.start();
});
}
}, "继续下载", ["是", "否"]);
});