💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 之前 ![](https://img.kancloud.cn/40/4a/404a1f8c0d1f0257bbb1c31205f9f78a_580x394.png) ### 弹窗之后 ![](https://img.kancloud.cn/3c/08/3c088140d557861f92157038fcb82553_673x697.png) ``` ~~~ /*点击放大图片*/ function previewImg(obj) { var img = new Image(); img.src = obj.src; var imgHtml = "<img src='" + obj.src + "' width="100%"/>"; //弹出层 layer.tab({ type: 1, shade: true, shadeClose: true, title: false, //不显示标题 area:['auto','auto'], content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响 cancel: function () { } }); } $(".img_daxiao").each(function() { $(this).click(function() { previewImg(this); }) }); ~~~ ```