2009-09-22 85 views

回答

3
var xSeconds = 2; // 2 seconds 
var myDialog = $('dialog_element').dialog('open'); 
setTimeout(function() { myDialog.dialog('close'); }, xSeconds * 1000); 
+2

對於什麼都原因,沒」給我炒鍋。我用這個來代替:$(function(){(012)} \t \t window.setTimeout(函數(){ \t \t \t $( '#對話')對話框( 「親密」); \t \t},5000); – Jason