我正在创建一个弹出窗口,当一个进程完成并且在更改页面弹出窗口之前没有显示。我的代码是
<div data-role="popup" id="confirm" data-overlay-theme="none" data-theme="none" style="max-width:100%;background:url(images/alert-bg.png) repeat-x;" class="ui-corner-all">
<div data-role="header" data-theme="none" class="ui-corner-top warning-border">
<h1 style="color:#fff;font-size:14px;font-family:Verdana, Geneva, sans-serif;">Warning</h1>
</div>
<div data-role="main" data-theme="d" class="ui-corner-bottom ui-content">
<h3 class="ui-title alert" style="color:#fff;font-size:16px;font-family:'Nova Square', Arial, Helvetica, sans-serif;font-weight:400;"></h3>
<a href="#" data-role="button" data-rel="back" data-mini="true" data-transition="flow" data-theme="a" style="background-color:#fff !important;color:#4f72b3;">OK</a>
</div>
</div>
并调用弹出窗口
$("h3.alert").html("");
$("h3.alert").append("User is alerady Exist");
$("#confirm").popup();
$("#confirm").popup("open");
$.mobile.pageContainer.pagecontainer('change', '#enroll-screen', {
transition: 'pop',
changeHash: false,
reverse: true,
showLoadMsg: true
});
但不显示弹出窗口?如何解决这个问题