mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-07 12:52:48 +08:00
增加自动重复,新增留言列表
This commit is contained in:
@@ -74,7 +74,19 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
layui.use(['element','form'])
|
||||
function renderRepeat(elem) {
|
||||
$(elem).find('[data-repeat]').each(function () {
|
||||
for (let index = 1; index < $(this).data('repeat'); index++) {
|
||||
var clone = $(this).clone()
|
||||
clone.insertAfter(this)
|
||||
renderRepeat(clone)
|
||||
}
|
||||
})
|
||||
}
|
||||
renderRepeat('body')
|
||||
layui.use(['element', 'form'])
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user