{{# if(d.isActive == 1){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="forbidden">禁用</a>
{{# } }}
{{# if(d.isActive == 0){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="open">啟用</a>
{{# } }}
實現效果:

