layui学习笔记
1 修改自己的端口
2 用户表格
field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true, totalRowText: '合计'
//unreasize:长度,可无;sort:排序(小到大);
field:'username', title:'用户名', width:120, edit: 'text'
//edit:直接编辑
,{field:'email', title:'邮箱', width:150, edit: 'text', templet: function(res){ return '<em>'+ res.email +'</em>'
//templet: function(res):添加标签;return '<em>'+ res.email +'</em>':设置字体,em为斜体