Jquery mobile 对话框关闭转到上一页

Jquery mobile 对话框关闭转到上一页,jquery-mobile,Jquery Mobile,预期场景:我在一个页面中有两个div,一个是弹出窗口,另一个是主页。当我点击弹出窗口时,弹出窗口应该打开,当我点击关闭弹出窗口时,它应该显示另一个div 实际场景:当我关闭它时,它不会显示另一个div,而是转到上一页 使用jquerymobile1.3.0 $.mobile.changePage("#publishlogonmanage", { role: "dialog", transition:"slideup",reload:false,reverse: false,changeHash:

预期场景:我在一个页面中有两个div,一个是弹出窗口,另一个是主页。当我点击弹出窗口时,弹出窗口应该打开,当我点击关闭弹出窗口时,它应该显示另一个div

实际场景:当我关闭它时,它不会显示另一个div,而是转到上一页 使用jquerymobile1.3.0

$.mobile.changePage("#publishlogonmanage", { role: "dialog", transition:"slideup",reload:false,reverse: false,changeHash: false });
弹出代码

        <div data-role="page" id="publishlogonmanage" data-history="false" data-overlay-theme="b" data-theme="b">        
        <div data-role="header" data-theme="a">        
        <a data-icon="delete" id="logonClose" data-mini="true" data-theme="a" data-rel="back" data-role="button" class="ui-btn-left"></a>       
        <a data-icon="delete"  data-theme="a" data-transition="flip" data-rel="back" data-mini="true" data-role="button" class="ui-btn-left" style="width:80px;" >Close</a>
    </div>
    <div data-role="content" style="padding: 0; margin: 0; background: #FFFFFF;">
    This is Body
    </div>

</div>

10
这是尸体

我不知道您为什么要使用这种笨拙的标记。如果你想打开一个弹出窗口,为什么不使用弹出窗口小部件呢?无论如何id为“MobilePage”的页面也是一个对话框/弹出窗口吗?不,它不是一个对话框/弹出窗口。我不知道为什么要使用这种笨拙的标记。如果你想打开一个弹出窗口,为什么不使用弹出窗口小部件呢?无论如何id为“MobilePage”的页面也是一个对话框/弹出窗口吗?不,它不是一个对话框/弹出窗口
<div data-role="page" data-theme="b" id="MobilePage" data-overlay-theme="b">
            <div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme="a">
                <div style="float: left; margin-left: 5px;"> <a href="javascript:GoBack();" data-icon="back" id="btnBack" data-ajax="false" data-role="button" data-theme="a">Back</a></div>

                <h1 id="title">                10            </h1>

            </div>
            <div data-role="content" class="master-wrapper-page">
    This is body
     <div style="margin-top:7px;display:none;float: right !important; margin-left: 0px !important;overflow:ellipsis;white-space: nowrap;" data-close-btn="right" id="ManageLogon" data-mini="true" onclick="LoadDialog();" data-rel="popup"></div><img src="../../../images/logon-E.png" style="1px solid #666666;margin-top:3px;margin-right:-5px float: right;height:30px;width:30px;" id="logonexp" /></div>
</div>
</div>