为什么confirm.alert这种代码都会自己运行两次?
var a=confirm("Are you ready?");
if (a===true){
alert("Cool!Let's go!");}
else{
alert("Go back to review basic JS knowledge!");
}
var a=confirm("Are you ready?");
if (a===true){
alert("Cool!Let's go!");}
else{
alert("Go back to review basic JS knowledge!");
}
2017-08-10
举报