需要使用layui模板引擎
<script type="text/html" id="indexTpl">
{{d.LAY_TABLE_INDEX+1}}
</script>在table的col中使用
{title: '序号',templet: '#indexTpl'}版权声明:本文为onlywebsite原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
需要使用layui模板引擎
<script type="text/html" id="indexTpl">
{{d.LAY_TABLE_INDEX+1}}
</script>在table的col中使用
{title: '序号',templet: '#indexTpl'}