建设网站需要多少时间,建立网站例题,网站开发深圳公司,官方网站建设推广test学生评优评先系统学生信息管理学生信息查询学生信息添加注册登录查看编辑删除$(function () {layui.use(table, function () {var $table layui.table;//第一个实例$table.render({elem: #stu,height: 300,//数据接口,url: /stu/student/getAllClazz,//开启分…test学生评优评先系统学生信息管理学生信息查询学生信息添加注册登录查看编辑删除$(function () {layui.use(table, function () {var $table layui.table;//第一个实例$table.render({elem: #stu,height: 300,//数据接口,url: /stu/student/getAllClazz,//开启分页page: true,//表头cols: [[{checkbox: true},{field: sid, title: 学号, width: 200, sort: true},{field: name, title: 姓名, edit: text, width: 100},{field: birth, title: 出生年月, type: date, templet: #birth},{field: gender, title: 性别, width: 60},{field: idCard, title: 省份证号},{field: address, title: 家庭住址},{field: clazz.cid, title: 班级编号 , templet: #cid},{field: right, title: 操作, width: 177, toolbar: #barDemo}]],});$table.on(checkbox(stu), function (obj) {console.log(obj);});$table.on(edit(stu), function (obj) {//obj.value: 得到修改后的值,obj.data: 得到所在行所有键值,obj.field: 得到字段var value obj.value, data obj.data, field obj.field;layer.msg([ID: data.id ] field 字段更改为 value);});$table.on(tool(stu), function (obj) {console.log(obj);});})});{{#var birth function(birth) {if(date) {var t new Date(birth);return t.getFullYear() - (t.getMonth() 1) - t.getDate();} else {return ;}}}}{{birth(d.birth)}}{{#return d.clazz.clazzName;}}