1. 程式人生 > >jqgird 設定多選 只能選中 最後一行 選不中滑鼠點選的一行

jqgird 設定多選 只能選中 最後一行 選不中滑鼠點選的一行

雖然江湖上有很多答案了,但是也是我找了好久了

平常都是這樣的,有屬性 ID ,可能預設為唯一的

colModel : [
                         {name : 'id',     index : 'id',     width:'88px' ,hidden:true },

今天是這樣的

colModel : [
                         {name : 'momo',     index : 'momo',     width:'88px' ,hidden:true ,key:true},

新增  key:true  就可以選中了