$(function() {
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#revocation" ).dialog({
autoOpen: false,
height: 200,
width: 460,
modal: true,
buttons:{
"Yes": function() {
revocation();
},
"Close" : function() {
$( this ).dialog( "close" );
}
}
});
我想在此功能中添加处理时间,当我点击按钮"是",添加处理时间3-5秒,谢谢提前
答案 0 :(得分:0)
Javascript是异步语言。你可以把
setTimeout(function() {revocation();},3000);
而不是
revocation();
延迟3000毫秒
答案 1 :(得分:0)
你看到我的图片更多,可以添加功能,当我点击按钮"是的"出现2个文件"撤销"在镀铬中具有延迟时间:410ms& 309ms,有一种方法可以添加jquery使一个单击按钮2文件运行等于不,例如:410ms& 410ms。