// 遍歷所有的勾選框,計(jì)算出已選總數(shù),存放在變量checked while(i < len) { if(inputs[i].checked) { checked++; } i++; } //根據(jù)checked值更新結(jié)果 if(checked){ ret.textContent = checked; ret.style.display = "block"; }else{ ret.textContent = ""; ret.style.display = "none"; }

媽咪媽咪哄
2014-08-05
1 回答
舉報(bào)
0/150
提交
取消
2022-03-24
完全正解。我提出來是給其他學(xué)習(xí)者注意的。也感謝你的回答啊咧~老師對冪指數(shù)的理解欠妥~~~