简体   繁体   English

jQuery UI TypeError:e.widget.extend不是函数

[英]jQuery UI TypeError: e.widget.extend is not a function

I have updated my jQuery files including jQUery UI to use the tooltip feature. 我更新了我的jQuery文件,包括jquery UI,以使用工具提示功能。

But now Javascript is dieing with the following error: 但现在Javascript正在消失,出现以下错误:

TypeError: e.widget.extend is not a function

Can anyone help me? 谁能帮我?

jQuery Ui被包含两次(因为另一个bug而第二次隐藏)问题解决了

I was getting the similar error for tag-it.min.js 我收到了tag-it.min.js的类似错误

b.widget is not a function tag-it.min.js b.widget不是函数标记-it.min.js

When I check, found my files were loading in this case 当我检查时,发现我的文件正在加载这种情况

<script src="/scripts/tag-it.min.js">
<script src="/scripts/jquery-ui-1.11.1.js">

Just reverse the order and it is fixed 只需撤销订单即可修复

Might be it can help someone 可能它可以帮助某人

I had to add wp_deregister_script( 'jquery-ui-widget' ); 我不得不添加wp_deregister_script('jquery-ui-widget'); to admin-footer.php for an exception for widgets.php file only. to admin-footer.php仅用于widgets.php文件的异常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM