请问各位小伙伴,我错在哪里?谢谢喽!
//编写JS代码
function aaa() {
var rrr = document.getElementById("rrr");
var mmm = document.getElementById("rrr").innerHTML;
var bbb = confirm("系好安全带,准备启航--目标JS");
if (bbb === true){
rrr.innerHTML = ("出发喽");
} else if (bbb === true && mmm == ("出发喽")){
mmm = ("再出发喽");
} else if (bbb === true && mmm == ("再出发喽")){
mmm = ("再出发喽");
}
else {
rrr.innerHTML = ("你取消干嘛?");
}
}