php实现执行某一操作时弹出确认、取消对话框


复制代码 代码如下:

<script>
function del(){
if(confirm("确定要删除吗?")){
alert('删除成功!');
return true;
}else{
return false;
}
}
</script>
<button onclick="del()">确定</button>

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3