jQueryMobile弹出错误3次,然后返回导航
我的手机网络应用有一个很奇怪的问题。我已经做了几个月了,突然这个问题出现了。你可以把这个问题称为“三击出局!” 我使用:jQueryMobile弹出错误3次,然后返回导航,jquery,web-applications,jquery-mobile,mobile,popup,Jquery,Web Applications,Jquery Mobile,Mobile,Popup,我的手机网络应用有一个很奇怪的问题。我已经做了几个月了,突然这个问题出现了。你可以把这个问题称为“三击出局!” 我使用: jQuery-1.7.1 jQueryMobile-1.2.0 编辑: 1.当我关闭弹出窗口时,我收到以下错误消息: XHR finished loading: "http://192.168.0.67/". f.support.ajax.f.ajaxTransport.send f.extend.ajax a.mobile.loadPage a.mo
- jQuery-1.7.1
- jQueryMobile-1.2.0
1.当我关闭弹出窗口时,我收到以下错误消息:
XHR finished loading: "http://192.168.0.67/".
f.support.ajax.f.ajaxTransport.send
f.extend.ajax
a.mobile.loadPage
a.mobile.changePage
a.mobile.navreadyDeferred.done.a.mobile._handleHashChange
a.extend.onPopState
f.event.dispatch
f.event.add.h.handle.i
Uncaught TypeError: Cannot call method '_trigger' of undefined
z
a.mobile.changePage
a.mobile.changePage.a.mobile.loadPage.done.fail.m
f.Callbacks.n
f.Callbacks.o.fireWith
f.Callbacks.o.fire
a.mobile.loadPage.a.mobile.allowCrossDomainPages.h.isSameDomain.a.ajax.success
f.Callbacks.n
f.Callbacks.o.fireWith
w
f.support.ajax.f.ajaxTransport.send.d
我不想更改页面,但我想这就是jQuery想要的。如何防止这种行为?这个答案解决了我的问题: 问题是jQueryMobile弹出窗口正在处理浏览器历史记录。我把它转到了全球(在mobileinit中),解决了这个问题
$.mobile.popup.prototype.options.history = false;