未捕获错误:选项&#39; ajax&#39;附加到<select>元素

时间:2017-08-07 13:29:25

标签: javascript jquery wordpress

我有WordPress版本4.7.5和WooCommerce 3.1.1 当我尝试添加一些属性时,页面进入加载循环。 然后我打开浏览器检查控制台(chrome)消息错误就在那里,出现了很多错误。这是消息: 未捕获错误:选项&#39; ajax&#39;当附加到&lt; select&gt;时,Select2不允许使用元件。     at String。&lt; anonymous&gt; (select2.min.js:21)     在Function.each(load-scripts.php?c = 0&amp; load [] = jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery ...:2)     在d.prepareOpts(select2.min.js:21)     在d.prepareOpts(select2.min.js:22)     在d.init(select2.min.js:21)     在HTMLSelectElement。&lt; anonymous&gt; (select2.min.js:22)     在Function.each(load-scripts.php?c = 0&amp; load [] = jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery ...:2)     at a.fn.init.each(load-scripts.php?c = 0&amp; 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)     在HTMLSelectElement。&lt; anonymous&gt; (WC-增强型select.min.js:1)

0 个答案:

没有答案