columns: [
                    {
                        field: "",
                        title: "序号",
                        template: "<span class='row-number'></span>",
                        width:50
                    }]

 

dataBound: function () {
                    var rows = this.items();
                    $(rows).each(function () {
                        var index = $(this).index() + 1;
                        var rowLabel = $(this).find(".row-number");
                        $(rowLabel).html(index);
                    });
                }
————————————————
版权声明:本文为CSDN博主「jinuxm」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/jinuxm/java/article/details/53169329

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-06
  • 2022-02-10
  • 2021-07-31
  • 2022-02-08
  • 2021-09-20
相关资源
相似解决方案