js最简单的-点击小图放大

js最简单的-点击小图放大

标签(空格分隔): js


<html>
<body>
    <img  class="imgview" src="{$v1}" width="20px" height="20px" alt="">
</body>
<script src="/layer/layer.js"></script>
<script src="/js/jquery.js"></script>
<script>
    $("body").on("click", ".imgview", function (e) {
        layer.photos({photos: {"data": [{"src": e.target.src}]}});
    });
</script>
</html>
posted @ 2019-05-14 14:48  TaylorSWMM  阅读(634)  评论(0编辑  收藏  举报