js 弹出带有确认和取消的问询对话框

index.js

const res = window.confirm("Are you a programmer?");
alert(`Your answer is ${res}`);

posted on 2021-09-09 10:39  aisowe  阅读(145)  评论(0编辑  收藏  举报

导航