for (i in $('label')){ $('label')[i].onclick=function(e){ console.log($('label').length); for(j in $('label')){ $('label')[j].addClass('selected'); } $(this).removeClass('che'); } }哪里有錯誤呢??
$(...)[j].addClass is not a function(…)??
慕數(shù)據(jù)2591119
2016-12-14 14:18:41