下面的代码在Jquery ui对话框中给出了太多递归错误
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"Delete all items": function() {
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
},
close:function(){
$( this ).dialog( "close" );
}
});
如何解决此问题?
这里正在进行无限递归。只需更改
close:function(){
$( this ).dialog( "close" );
}
至
close:function(){
}
也许这是因为你有无限递归。
close:function(){
$( this ).dialog( "close" );
}