1***@qq.com
1***@qq.com
  • 发布:2018-03-06 17:50
  • 更新:2018-03-06 17:50
  • 阅读:1053

plus.gallery.pick的参数中设置了multiple : true,点击一张图片后就立马返回了,不能同时多选几张图片

分类:HTML5+

var btn = document.getElementById('gallary'),
content = document.querySelector('.msgSection');
btn.addEventListener('tap',function(){
plus.gallery.pick(function(path){
var img = '';
for ( var i in path.files ){
img += '<img width=100 class="chat-img" src='+path.files[i]+'/>';
}
content.innerHTML = img
},function(e){
content.innerHTML = e.msg;
},{
filter : "image",
multiple : true,
maximum : 3
})
})

2018-03-06 17:50 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复