求innerHTML与innerText的差别
else{
document.getElementById("sut").innerHTML=num;
num--;
var i=setTimeout(rum,1000);
}else{
document.getElementById("sut").innerText=num;
num--;
var i=setTimeout(rum,1000);
}两个代码都能运行
else{
document.getElementById("sut").innerHTML=num;
num--;
var i=setTimeout(rum,1000);
}
else{
document.getElementById("sut").innerText=num;
num--;
var i=setTimeout(rum,1000);
}
两个代码都能运行
2019-10-08
举报