confirm

  • 显示一个问题
  • 有确定和取消两个按钮
  • 点击确定返回true,点击取消返回false
result = confirm(question);
原文地址:https://www.cnblogs.com/flyover/p/14099568.html