apiCloud 浏览图片

时间:2018-01-17 20:18:08   收藏:0   阅读:1255

点击链接查看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
                    });
                }

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!