幫忙看一下,為什么寫(xiě)完for循環(huán)就看不到下拉列表?
?title.onclick=function(event){
? ? ? // 執(zhí)行腳本
? ? ? event=event||window.event;
? ? ? if(event.stopPropagation){
? ? ? ? ? event.stopPropagation();
? ? ? }else{
? ? ? ? ? event.cancleBubble=ture;
? ? ? }
? ? ? menu.style.display='block';
? ? } ?
? ??
? ?// 滑過(guò)滑過(guò)、離開(kāi)、點(diǎn)擊每個(gè)選項(xiàng)時(shí)
? ? ? // 執(zhí)行腳本
? ? ? for(int i,l=menu.length;i<l;i++){
? ? ? ? ? menu[i].onmouseover=function(){
? ? ? ? ? ? ? this.style.background='blue';
? ? ? ? ? }
? ? ? }
2018-01-25
for循環(huán)的i變量沒(méi)賦值