最新回答 / 慕移動6432290
<!DOCTYPE? HTML><html ><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><script type="text/javascript">var infos = [? ? ['小A','女',21,'大一'], ['小B','男',23,'大三'], ['小C','男',24...
2023-04-11
var div = document.getElementsByTagName("div")[0].childNodes;
for(var i=0; i<div.length; i++){
document.write(div[i].nodeName + "<br>");
document.write(div[i].nodeType + "<br>");
document.write(div[i].nodeValue + "<br><hr/>");
}子標(biāo)簽的東西獲取不到
for(var i=0; i<div.length; i++){
document.write(div[i].nodeName + "<br>");
document.write(div[i].nodeType + "<br>");
document.write(div[i].nodeValue + "<br><hr/>");
}子標(biāo)簽的東西獲取不到
2023-03-25
不會有負(fù)號的做法
function changeSec(){
sec--;
setTimeout(this.changeSec,1000);
if(sec<=0){
location.href = "http://idcbgp.cn/";
return;
}
document.getElementById("sec").innerHTML = sec;
}
setTimeout(changeSec, 1000);
function changeSec(){
sec--;
setTimeout(this.changeSec,1000);
if(sec<=0){
location.href = "http://idcbgp.cn/";
return;
}
document.getElementById("sec").innerHTML = sec;
}
setTimeout(changeSec, 1000);
2023-03-24
最新回答 / 陽火鍋
<...圖片...>不就是id的名字么
最贊回答 / 慕函數(shù)7131464
就是一變量名,存放document.getElementsByTagName("input")輸出的東西