前端之家收集整理的这篇文章主要介绍了
dojo 常用方法,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
dojo.addOnLoad( function() {
dojo.forEach(
dojo.query("span#testButton"),function(x){
dojo.connect( x,"onmouSEOver",null,function(event){x.style.backgroundColor = "green" ;}
);
dojo.connect( x,"onmouSEOut",function(event){x.style.backgroundColor = "" ;}
);
dojo.connect( x,"onclick",function(event){ alert('-'); }
);
dojo.style( x,{
cursor: "default",border: "1px gray solid",padding: "2px",margin: "3px"
}
);
}
);
});
原文链接:https://www.f2er.com/dojo/291659.html