for(var i=;i<5;i++)?? ?{?? ??? ?set_array[i].index = i;?? ??? ?set_array[i].onclick = function()?? ??? ?{?? ??? ??? ?for(var j = 0;j < box_number;j++)?? ??? ??? ?{?? ??? ??? ??? ?set_array[j].className = 'none';?? ??? ??? ??? ?set_box[j].className = 'hide_box';?? ??? ??? ?}??????????? this.className = 'this_set';??????????? set_box[this.index].className = '';?? ??? ?}?? ?}在循環(huán)中如果點(diǎn)擊事件沒(méi)有被觸發(fā),跳過(guò)點(diǎn)擊事件執(zhí)行后面的? 如果是這樣那s循環(huán)結(jié)束了怎么辦?
for循環(huán)中的點(diǎn)擊事件問(wèn)題????
楓的輕吟
2016-07-21 19:04:48