0
在我的jQuery Mobile應用程序中,我使用通知插件爲了使用自定義提醒,問題是所有提醒都同時出現一個在另一個後面,怎麼可以我阻止?我該怎麼做才能解決這個問題?自定義提醒同時出現
請幫我....
這是我的代碼
if($.trim($('#Name').attr('value')).length== 0 )
{
navigator.notification.alert(' Insert your Name',alertDismissed,'Missed Value', 'OK');
}
if($.trim($('#PhoneNum').attr('value')).length== 0 )
{
navigator.notification.alert(' Insert your Phone Number',alertDismissed,'Missed Value', 'OK');
}
if($.trim($('#Address').attr('value')).length== 0 )
{
navigator.notification.alert(' Insert your Address',alertDismissed,'Missed Value', 'OK');
}
function alertDismissed()
{
}