Javascript jQuery UI对话框将不显示按钮

Javascript jQuery UI对话框将不显示按钮,javascript,jquery-ui,jquery-ui-dialog,Javascript,Jquery Ui,Jquery Ui Dialog,我有一个奇怪的问题,也许解决方法会很简单 我的对话框正在显示,但没有给定的按钮。请帮帮我 我有: 您确定要删除此用户吗? 函数openDialog(usrId){ $(“#对话框”)。对话框({ 按钮:{ “删除”:函数(){ window.location='/user/index/remove user/usrId/'+usrId }, “取消”:函数(){ $(此).dialog('关闭') } } }).对话框(“打开”); 返回false; } 是否包含所有Jquery对话框js/c

我有一个奇怪的问题,也许解决方法会很简单

我的对话框正在显示,但没有给定的按钮。请帮帮我

我有:

您确定要删除此用户吗?
函数openDialog(usrId){
$(“#对话框”)。对话框({
按钮:{
“删除”:函数(){
window.location='/user/index/remove user/usrId/'+usrId
},
“取消”:函数(){
$(此).dialog('关闭')
}
}
}).对话框(“打开”);
返回false;
}

是否包含所有Jquery对话框js/css文件?

是否包含所有Jquery对话框js/css文件?

我自己找到了解决方案:

您确定要删除此用户吗?
函数openDialog(usrId){
$(“#对话框”)。对话框(“选项”、“按钮”,
{
“删除”:函数(){window.location='/user/index/remove user/usrId/'+usrId;$(this.dialog(“close”);}
,
“取消”:函数(){$(this).dialog('close')}
}
).对话框(“打开”);
返回false;
}

我自己找到了解决方案:

您确定要删除此用户吗?
函数openDialog(usrId){
$(“#对话框”)。对话框(“选项”、“按钮”,
{
“删除”:函数(){window.location='/user/index/remove user/usrId/'+usrId;$(this.dialog(“close”);}
,
“取消”:函数(){$(this).dialog('close')}
}
).对话框(“打开”);
返回false;
}
在我的中在我的中