账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    angularJS中使用bootstrap-select多选报错,为什么?
    44
    0
    <select id="ShopSelectionCombobox"
            class="form-control _shop-combo"
            ng-options="shop.name as shop.displayName for shop in shops"
            ng-model="selectedShop"
            ng-change="selectChange({selectedShop:selectedShop})"
            ui-jq="selectpicker"
            ui-options='{ iconBase: "", tickIcon: "fa fa-check" }'
            multiple
            data-live-search="true"
            data-dropup-auto="true"
            data-none-selected-text="{{filterByShopText}}">
    </select>
    

    报错信息是:
    TypeError: values.map is not a function

    at SelectController.writeNgOptionsMultiple [as writeValue] (angular.js:29949)
    at Object.ngModelCtrl.$render (angular.js:32572)
    at updateOptions (angular.js:30131)
    at $watchCollectionAction (angular.js:17718)
    at Scope.$digest (angular.js:17855)
    at Scope.$apply (angular.js:18125)
    at done (angular.js:12233)
    at completeRequest (angular.js:12459)
    at XMLHttpRequest.requestLoaded (angular.js:12387)
    1
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部