5 javascript recursion jquery jquery-ui jquery-ui-dialog
下面的代码在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(){
            }
| 归档时间: | 
 | 
| 查看次数: | 2834 次 | 
| 最近记录: |