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
})
})
1***@qq.com
- 发布:2018-03-06 17:50
- 更新:2018-03-06 17:50
- 阅读:1128
plus.gallery.pick的参数中设置了multiple : true,点击一张图片后就立马返回了,不能同时多选几张图片
分类:HTML5+
0 个回复