This commit is contained in:
贤心
2018-10-29 07:15:26 +08:00
parent 592875b26d
commit 100f89f8da
33 changed files with 114 additions and 64 deletions

View File

@@ -216,6 +216,7 @@ layui.use('form', function(){
//,'open': false
,'sex': '男'
,'desc': 'form 是我们非常看重的一块'
,xxxxxxxxx: 123
});

View File

@@ -184,6 +184,7 @@ layui.use('table', function(){
,page: {
}
,autoSort: false
//,loading: false
,totalRow: true
,limit: 30
@@ -333,9 +334,10 @@ layui.use('table', function(){
//监听排序
table.on('sort(test)', function(obj){
console.log(this, obj.field, obj.type)
console.log(this)
return;
//return;
layer.msg('服务端排序。order by '+ obj.field + ' ' + obj.type);
//服务端排序
table.reload('test', {
initSort: obj