我已經在應用程序中使用了bootstrap-select
。現在我應該用select2
替換bootstrap-select
,它們具有相同的樣式。什麼是改變js
部分的最快和最有效的方式?如何用select2替換bootstrap-select?
例如:
在引導,選擇有方法和選項,如selectpicker('refresh'),selectpicker('show'),selectpicker('close')
等,而在select2
,方法是open,close
等Eventhough我取代那些bootstrap-select
方法用更少的類似select2
方法,我不明白相同的結果,並得到奇怪的行爲。 select2
中不存在許多方法,如bootstrap-select
現在如何以有效的方式更新select2
這些代碼?
你使用bootstrap3嗎? –