Titanium 钛合金-创建对话框时应用程序如何运行?
我有钛合金的代码:Titanium 钛合金-创建对话框时应用程序如何运行?,titanium,Titanium,我有钛合金的代码: a; showDialog({ title: L('dialog_title_geo_error'), message: L("alert_geo_disable") }); b; function showDialog(args) { var dialog = Ti.UI.createAlertDialog(args); dialog.show(); return dialog; }; 运行showDialog(
a;
showDialog({
title: L('dialog_title_geo_error'),
message: L("alert_geo_disable")
});
b;
function showDialog(args) {
var dialog = Ti.UI.createAlertDialog(args);
dialog.show();
return dialog;
};
运行showDialog()之后;应用程序的行为是什么?它会在那里暂停还是继续运行到b?
多谢各位 基本上,当您只使用alert()函数时,应用程序将在后台执行,而不会等待alert()函数响应 但若您使用Ti.UI.createAlertDialog()和事件监听器创建警报消息,那个么应用程序将等待用户输入的响应 参考: 在本页中,示例1和示例2类似于不要等待执行,如果您使用示例3并根据您的需求使用适当的事件,那么您就可以实现它