apiCloud 浏览图片

点击链接查看api详情

https://docs.apicloud.com/Client-API/Func-Ext/photoBrowser

        var photoBrowser = api.require('photoBrowser');                
        seeImage: function(index,item) {
                    var this_obj = this;
                    photoBrowser.open({
                        images: this_obj.textareaClick[index].img,
                        placeholderImg: 'widget://image/loading_more.gif',
                        bgColor: '#000'
                    }, function(ret, err) {
                        if (ret) {
                            if (ret.eventType == 'click') {
                                photoBrowser.close()
                            }
                        } else {
                            alert(JSON.stringify(err));
                        }
                    });
                    photoBrowser.setIndex({
                            index: index
                    });
                }
原文地址:https://www.cnblogs.com/gqx-html/p/8304129.html