在我的通知对话框中, 我想通过参数对话框类型指定。 但毕竟没有管理,所以输入和其他不是我的javascript函数的css主题。
HTML:
<div id="notification" data-role="page" >
<div data-role="header" data-theme="c">
<h1></h1>
</div>
<div data-role="content" data-theme="c">
</div>
</div>
JAVASCRIPT:
function notification(title, text, notification_transition){
$.mobile.changePage( "#notification", {
transition: notification_transition,
role: "dialog"
} );
$("#notification h1").html(title);
$("#notification p.message").html(text);
$("#notification div[data-role=content]").html('<p class="message"></p>'+
'<p>Identifiant</p>'+
'<input type="text" value="" data-theme="a">');
try
{
navigator.notification.vibrate(500);
}
catch(error) {}
}
如何在$(“#notification div [data-role = content]”)之后重新启动jaquery移动主题.html(); 预先感谢 METOS