幫忙看一下,為什么寫完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';
? ? } ?
? ??
? ?// 滑過滑過、離開、點擊每個選項時
? ? ? // 執(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變量沒賦值