easyui datagrid生成序号列formatter

        {
          field: "index",
          title: "序号",
          halign: "center",
          align: "center",
          width: 80,
          formatter: function(value, row, index) {
            var options = $("#mainGrid").datagrid("options");
            return options.pageSize * (options.pageNumber - 1) + (index + 1);
          }
        },

 

posted @ 2019-12-04 16:09  杏杏子  阅读(1639)  评论(0编辑  收藏  举报