$(".weui_uploader_files li").click(function(e) { var thisPath = webRoot + $(this).attr("path"); var lis = $(this).siblings(); var imgs = new Array(); for (i = 0; i < lis.length; i++) { var photoPath = lis[i].getAttribute("path"); imgs.push(webRoot + photoPath); } wx.previewImage({ current : thisPath, urls : imgs }); });
微信jssdk 图片预览接口调用方法!
猜你喜欢
转载自leiding.iteye.com/blog/2398933
今日推荐
周排行