window.onload=function(){?var uo=document.getElementsByTagName("p");? for(var y=0;y<5;y++){ ? ? ? ? ?uo[y].onclick=function(){ ? ? ?this.a=y ? alert(this.a); ? ? ?} ? ? ?}}
為什么這里彈出來的this.a是1而不是0
黑色的押切
2016-07-05 00:01:33