外掛https://www.jqueryscript.net/form/EasyFilterableMultiSelectPluginWithjQueryfilterselector.html]https://www.jqueryscript.net/form/EasyFilterableMultiSelectPluginWithjQueryfilterselector.html修改的方式主要更新:jquery.filterselector.js原先的部分:當選擇“全選/取消全選”,只有一次就無法改變修改的部分:已經解決//checkAlloruncheckAlltoggleChecked:function{varselfthis,$inputsthis.inputs.filterfunction{return!this.disabled&&$.css$this.parents'li'0],"display"!'none';},allChecked$inputs.length$inputs.filter":checked".length;//切換全選或取消全選的狀態$inputs.eachfunction{$this.prop"checked",!allChecked.trigger"change";};//更新按鈕文字this.update;//切換原來選項標籤的狀態this.element.find'option'.prop"selected",function{return$this.val$this.prop"selected",!allChecked.val;};//觸發選擇框的變更事件if$inputs.length{this.trigger"change";}},