<script>layui.use('table', function(){var table = layui.table;//第一个实例table.render({elem: '#demo',height: 315,url: 'http://localhost:8080/springmvc09_LayuiTable/getCar.action' //数据接口,page: true //开启分页,cols: [[ //表头{field: 'id', title: 'ID', sort: true, fixed: 'left'},{field: 'name', title: '用户名'},{field: 'pwd', title: '性别'},{field: 'date', title: '注册时间', templet : "<div>{{layui.util.toDateString(d.ordertime, 'yyyy年MM月dd日 HH:mm:ss')}}</div>"}]]});});</script>
1200字范文,内容丰富有趣,写作的好帮手!