我不明白为什么这个对话框不起作用。我正在使用 jqm 1.3
<a href="#foo" data-rel="dialog">Open dialog</a>
<div id="foo" data-role="dialog">
<div data-role="header" data-theme="d">
<h1>Dialog</h1>
</div>
<div data-role="content">
<h1>Delete page?</h1>
<p>This is a regular page, styled as a dialog. To create a dialog, just link to a normal page and include a transition and <code>data-rel="dialog"</code> attribute.</p>
<a href="dialog/index.html" data-role="button" data-rel="back" data-theme="b">Sounds good</a>
<a href="dialog/index.html" data-role="button" data-rel="back" data-theme="c">Cancel</a>
</div>
</div>
我在“头”上加了
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js>
和其他 jqm 事件正在工作。