<script type="text/html" id="createDateTpl"> {{layui.util.toDateString(d.createDate, 'yyyy-MM-dd')}}//createDate为date类型 </script>
layui数据表格调用
{field:'createDate', title:'创建日期', templet: "#createDateTpl"}
<script type="text/html" id="createDateTpl"> {{layui.util.toDateString(d.createDate, 'yyyy-MM-dd')}}//createDate为date类型 </script>
layui数据表格调用
{field:'createDate', title:'创建日期', templet: "#createDateTpl"}