Can't select item in list created by ui-select2

后端 未结 3 1706
别那么骄傲
别那么骄傲 2021-02-13 20:47

In my HTML I have this line:


3条回答
  •  梦毁少年i
    2021-02-13 20:58

    the problem was that Priv class/table didn't have id property, and its Primary Key was field code. I had to add function :

    id : function(priv) {
            return priv.code;
         },
    

    in $scope.privNameSelect2options

提交回复
热议问题