javascript中如何运用confirm方法

2025年02月20日 建站教程

javascript中如何运用confirm方法,下面web建站小编给大家详细介绍一下代码的运用!

confirm代码介绍:

function winConfirm() {
  var obj = confirm("你确定要继续?");
  if( obj == true ) {
    document.write ("我想继续!");
    return true;
  } else {
    document.write ("我不想继续!");
    return false;
  }
}

本文链接:http://so.lmcjl.com/news/23508/

展开阅读全文
相关内容