自定义属性的添加
<ul id="uu">
<li>aa</li>
<li>ss</li>
<li>zz</li>
<li>xx</li>
</ul>
<script>
var list=document.getElementById("uu").getElementByTagname("li");
for(var i=0;i<list.length;i++){
list[i].setAttribute("score",(i+1)*10);
list[i].onclick=function(){
alert(this.getAttribute("score"));
};
}
</script>