e448e8d1 by 任超

feat:layui 测试

1 parent a3137a7c
......@@ -28,6 +28,7 @@
<div>条目5</div>
</div>
</div>
<div id="test1"></div>
<button type="button" class="layui-btn">一个标准的按钮</button>
</div>
</body>
......@@ -53,4 +54,13 @@
//,anim: 'updown' //切换动画方式
});
});
layui.use('laypage', function () {
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'test1' //注意,这里的 test1 是 ID,不用加 # 号
, count: 50 //数据总数,从服务端得到
});
});
</script>
\ No newline at end of file
......