layui数据表格初始化时按某列进行排序

在初始化时增加

initSort: {
field: 'column_name',
type: 'asc',
}

posted @ 2024-05-08 13:37  奇迹之耀  阅读(18)  评论(0编辑  收藏  举报