for (var i = 0; i < imageListlength; i++)
{
uni.saveFile({
tempFilePath: this.imageList[i],
success: function(res) {
list.push(res.savedFilePath);
},
complete: function(res) {}
});
}
this.piclocalpath = list;//没保存完就执行这句了
for (var i = 0; i < imageListlength; i++)
{
uni.saveFile({
tempFilePath: this.imageList[i],
success: function(res) {
list.push(res.savedFilePath);
},
complete: function(res) {}
});
}
this.piclocalpath = list;//没保存完就执行这句了
2 个回复
虫雪浓 - 热爱生活,热爱编程
1***@qq.com
监听this.piclocalpath长度与imageListlength长度一致时代表下载完成