bootstraptable中部分复选框选中状态但不操作

 {
                         checkbox: true,
                         //field: "NodeManID",
                         formatter: function (value, row, rowIndex) {
                            // alert(row.NodeManID)
                             if (row.NodeManID != "" && row.NodeManID != null && row.NodeState == "0") {
                                 return { checked: true }
                             }
                             else if (row.NodeManID != "" && row.NodeManID != null&&row.NodeState != "0")
                             {
                                 return { checked: true, disabled: true }
                             }
                         }
                     }

效果:
在这里插入图片描述

发布了1 篇原创文章 · 获赞 2 · 访问量 30

猜你喜欢

转载自blog.csdn.net/qq_34159870/article/details/105286321