Jquery mobile 如何将“是/否”对话框添加到jquery移动页面?

Jquery mobile 如何将“是/否”对话框添加到jquery移动页面?,jquery-mobile,live,jquery-ui-dialog,alert,Jquery Mobile,Live,Jquery Ui Dialog,Alert,当我添加$document.ready{alert'it is ready'}时;进入SiteMaster.master页上的脚本标记,并使用以下链接调用该页:http://192.168.1.66:90/Reminder/test.aspxDialogChangeTag.aspx 直到我打电话给你,我才开始工作http://192.168.1.66:90/Reminder/DialogChangeTag.aspx 链接 我哪里出错了? DialogChangeTag.aspx: <%@

当我添加$document.ready{alert'it is ready'}时;进入SiteMaster.master页上的脚本标记,并使用以下链接调用该页:http://192.168.1.66:90/Reminder/test.aspxDialogChangeTag.aspx 直到我打电话给你,我才开始工作http://192.168.1.66:90/Reminder/DialogChangeTag.aspx 链接

我哪里出错了? DialogChangeTag.aspx:

<%@ Page Title="" Language="C#" MasterPageFile="~/TekContent.master" AutoEventWireup="true"
    CodeFile="DialogChangeTag.aspx.cs" Inherits="DialogChangeTag" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageIdContent" runat="Server">
    <div data-role="page" id="delete_dialog" data-theme="b">
        <script type="text/javascript">
            $(document).ready(function () {
                alert("calis");
            }); 
        </script>
        <div data-role="content" data-theme="b">
            <h1>
                Delete Item?</h1>
            <p>
                Are you sure you want to delete this item?</p>
            <a href="#" class="delete-dialog-yes" data-role="button" data-theme="b">Yes</a>
            <a href="#" class="delete-dialog-no" data-role="button" data-theme="b">No</a>
        </div>
    </div>
</asp:Content>
Test.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/TekContent.master" AutoEventWireup="true"
    CodeFile="test.aspx.cs" Inherits="test" %>

<asp:Content ID="ContentPage" ContentPlaceHolderID="PageIdContent" runat="Server">
    <div data-role="page" id="pageTest">
        <div data-role="header" data-position="inline">
            <h1>
                TEST HEADER</h1>
        </div>
        <div data-role="content">
            <h2>
                TEST CONTENT</h2>
            <a href="DialogChangeTag.aspx" data-role="button" data-rel="dialog" data-transition="pop">
                Show Dialog</a>
        </div>
        <div data-role="footer" class="ui-bar" id="divFooterContainer">
            <h3>
                TEST FOOTER</h3>
        </div>
    </div>

可能是因为您的jQuery手机已设置为使用AJAX$只有在浏览器中加载新页面时,才会调用document.load。这意味着使用基于AJAX的页面时,$document.load将不起作用。如果该页面仅使用AJAX加载,则取消包装$document.load将解决此问题。解决此问题的更好方法是使用不引人注目的客户端代码。看看Backbone.js