function onclickItem(n,obj){
obj.style.backgroundColor= "#00CCFF"
var isLoaded = obj.getAttribute("isLoaded")
if (isLoaded != "true")
obj.setAttribute ("isLoaded","true")
else
obj.setAttribute ("isLoaded","false")
}
给obj加属性,换背景
最新推荐文章于 2020-11-15 20:13:33 发布