for (let n = 0; n < oLi.length; n++) { oLi[n].className = ""; } this.className = "current"; for (let n = 0; n < oUl.length; n++) { oUl[n].style.display = "none"; }執(zhí)行下面的for循環(huán)時(shí),上面for循環(huán)的n值是否也會(huì)變?
javascript作用域
慕娘9325324
2018-09-18 09:09:28