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"
, null
, function(event){x.style.backgroundColor = "" ;}
);
dojo.connect( x
, "onclick"
, null
, function(event){ alert('-'); }
);
dojo.style( x
, {
cursor: "default"
, border: "1px gray solid"
, padding: "2px"
, margin: "3px"
}
);
}
);
});
dojo 常用方法
最新推荐文章于 2020-07-30 07:42:20 发布