To restore the previous behavior, you can patch $.mobile.popup.handleLink() in a mobileinit handler:$(document).on("mobileinit", function() { var originalHandleLink = $.mobile.popup.handleLink; $.mobile.popup.handleLink = function(link) { var activePopup = $.mobile.popup.active, path = $.mobile.path; if (activePopup) { var popup = $(path.hashToSelector( path.parseUrl(link.attr("href")).hash)).first(); if (popup.length > 0 && popup.data("mobile-popup")) { activePopup._close(true); } } originalHandleLink.apply(this, arguments); };}); 这篇关于jQuery Mobile 1.4嵌套弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-30 23:23