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>