经过移动友好测试后,我在 Wordpress 网站中发现了一个错误。
未捕获的类型错误:o.widget 不是 domain/wp-includes/js/jquery/ui/mouse.min.js?ver=1.11.4:11:163 处的函数
该文件中的代码是:
!(function (e) {
"function" == typeof define && define.amd ? define(["jquery", "./widget"], e) : e(jQuery);
})(function (o) {
var u = !1;
return (
o(document).mouseup(function () {
u = !1;
}),
o.widget("ui.mouse", {
version: "1.11.4",
options: { cancel: "input,textarea,button,select,option", distance: 1, delay: 0 },
_mouseInit: function () {
var t = this;
this.element
.bind("mousedown." + this.widgetName, function (e) {
return t._mouseDown(e);
})
.bind("click." + this.widgetName, function (e) {
if (!0 === o.data(e.target, …Run Code Online (Sandbox Code Playgroud)