微信jssdk 图片预览接口调用方法!


$(".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
});
});

你可能感兴趣的:(Java,Javascript,jquery)