js_图片放大
<img class="sb" :src="item.receipts" @click="oneClick($event)" alt="" width="60px" height="20px"> oneClick: function (e) { var _this = e.currentTarget; // 当前元素 var _that = $(_this).clone(); _that.css({"width":"600px","height":"400px"}); // debugger; layer.open({ type: 1, skin: 'layui-layer-rim', //加上边框 area: ['640px', '440px'], //宽高 //content:e.currentTarget.outerHTML content:_that[0].outerHTML }); }
笔者寄语:人生没有白走的路,每一步,都算数。