confirm("确定删除该权限?") 点击确定返回true if(confirm("确定删除该权限?")){ //点击确定后操作 } 效果 转载于:https://www.cnblogs.com/stopping/p/6699584.html