Javascript 未捕获错误:选项';ajax';连接到a时,Select2不允许使用<;选择>;要素

Javascript 未捕获错误:选项';ajax';连接到a时,Select2不允许使用<;选择>;要素,javascript,jquery,wordpress,Javascript,Jquery,Wordpress,我有WordPress版本4.7.5和WooCommerce版本3.1.1 当我尝试添加一些属性时,页面进入一个加载循环。 然后我打开浏览器检查控制台(chrome)的消息错误,有很多错误。这就是信息: Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. at String.<anonymous> (select2.min.js:

我有WordPress版本4.7.5和WooCommerce版本3.1.1

当我尝试添加一些属性时,页面进入一个加载循环。 然后我打开浏览器检查控制台(chrome)的消息错误,有很多错误。这就是信息:

Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.
    at String.<anonymous> (select2.min.js:21)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
    at d.prepareOpts (select2.min.js:21)
    at d.prepareOpts (select2.min.js:22)
    at d.init (select2.min.js:21)
    at HTMLSelectElement.<anonymous> (select2.min.js:22)
    at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
    at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2)
    at a.fn.init.a.fn.select2 (select2.min.js:22)
    at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
Uncaught错误:Select2附加到元素时不允许使用选项“ajax”。
在弦上。(选择2.min.js:21)
在Function.each(load scripts.php?c=0&load[]=jquery核心、jquery迁移、UTIL、jquery ui核心、jquery ui小部件、jquery…:2)
在d.prepareOpts(选择2.min.js:21)
在d.prepareOpts(选择2.min.js:22)
在d.init(选择2.min.js:21)
在htmlselect元素。(选择2.min.js:22)
在Function.each(load scripts.php?c=0&load[]=jquery核心、jquery迁移、UTIL、jquery ui核心、jquery ui小部件、jquery…:2)
在a.fn.init.each(加载scripts.php?c=0&load[]=jquery核心、jquery迁移、utils、jquery ui核心、jquery ui小部件、jquery…:2)
在a.fn.init.a.fn.select2(select2.min.js:22)
在htmlselect元素。(wc-enhanced-select.min.js:1)

select2插件中定义了哪些选项?select2插件中定义了哪些选项?