移动端开发写前端,写的一脸懵逼
项目是一个相册:
<div id="layer-photos-demo" class="layer-photos-demo">
<th:block th:each="image,pro : ${image}">
<img th:class="image"
th:layer-pid="asdfasdfasdf"
th:layer-src="xxxx.jpg"
th:src="aaaaa.jpg"
th:alt="bbbbbbb">
</th:block>
</div>
<script>
调用示例
layer.photos({
photos: '#layer-photos-demo'
, anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
});
</script>
现在想要加一个编辑功能,就是页面在编辑状态下,点击缩略图的时候,并不会打开图片,而是选中一个checkbox
请问该怎么处理啊,看了下api,好像没有一个方法是来处理这个的,再加上没写过前端,不知道该从何处下手