js使用window.confirm原生弹出框点击确定和取消后的回调 刺心疯 2021-06-24 386 阅读1分钟 var r = confirm("请按按钮"); if (r == true) { x = "您按了确认!"; } else { x = "您按了取消!"; }