0
由於上一個使用SimpleDialog for JQuery Mobile,我嘗試啓動一個新對話框,但它不適用於我的Android手機(Samsung Galaxy SII,Android 2.3 0.6)。在桌面瀏覽器中有效。使用SimpleDialog作爲另一個對話框啓動對話框
它應該顯示第一個按下OK後的第二個對話框,但它不會。
我用下面的代碼現在來測試它:
$("#Home").simpledialog({
'mode': 'bool',
'prompt': 'First Dialog To Show',
'useModal': true,
'allowReopen': true,
'onClosed': function() {
alert("This Alert Gets Shown");
$("#Home").simpledialog({
'mode': 'bool',
'prompt': 'Seconds Dialog To Show',
'useModal': true,
'allowReopen': true,
'onClosed': function() {
//alert("bloces");
},
'buttons': {
'OK': {
click: function() {
return true;
}
}
}
});
},
'buttons': {
'OK': {
click: function() {
return true;
}
}
}
});
我完全不明白這些代碼。有人可以請進一步解釋嗎?鑑於上面的例子,這段代碼在哪裏? – Doug 2012-07-25 17:07:48