【发布时间】:2023-03-24 03:52:01
【问题描述】:
我的页面上运行了一些 jQuery 插件(即选项卡)。当我添加 <asp:requiredfieldvalidator> 时,jQuery 功能停止工作......有什么想法吗?
未捕获的类型错误:无法读取未定义的属性“移动” ZozoTabs.init 中的 Object.initAnimation (zozo.tabs.js:1050) (zozo.tabs.js:799) 在 HTMLDivElement。 (zozo.tabs.js:2122) 在 jQuery.fn.init.each 的 Function.each (jquery-2.1.4.js:374) (jquery-2.1.4.js:139) 在 jQuery.fn.init.$.fn.zozoTabs (zozo.tabs.js:2120) 在 HTMLDocument。 (PatientRegistration.js:18) 着火 (jquery-2.1.4.js:3099) 在 Object.fireWith [as resolveWith] (jquery-2.1.4.js:3211) 在 Function.ready (jquery-2.1.4.js:3417)
if (jQuery.browser.mobile) {
//_base.settings.event = zozo.events.touchend;
_base.settings.shadows = false;
}
if ($.zozo.core.support.css.transition === false) {
_base.settings.animation.type = zozo.animation.types.jquery;
if (jQuery.browser.mobile) {
_base.settings.animation.duration = 0;
}
}
【问题讨论】:
-
你能得到你的源代码的快照吗?
-
我收到此错误,未捕获的类型错误:无法在 ZozoTabs.init (zozo.tabs.js:799) 的 Object.initAnimation (zozo.tabs.js:1050) 处读取未定义的属性 'mobile'在 HTMLDivElement.
(zozo.tabs.js:2122) 在 Function.each (jquery-2.1.4.js:374) 在 jQuery.fn.init.each (jquery-2.1.4.js:139) 在jQuery.fn.init.$.fn.zozoTabs (zozo.tabs.js:2120) at HTMLDocument. (PatientRegistration.js:18) at fire (jquery-2.1.4.js:3099) at Object.fireWith [as resolveWith] (jquery-2.1.4.js:3211) 在 Function.ready (jquery-2.1.4.js:3417) -
if (jQuery.browser.mobile) { //_base.settings.event = zozo.events.touchend; _base.settings.shadows = false; } if ($.zozo.core.support.css.transition === false) { _base.settings.animation.type = zozo.animation.types.jquery; if (jQuery.browser.mobile) { _base.settings.animation.duration = 0; } }
-
这一切发生在我添加 asp 必填字段验证器时,如果我删除它,一切正常
标签: jquery asp.net jquery-ui jquery-ui-tabs