封装函数一(按下高亮松开恢复)
function changeColor(dom){
dom.onmousedown = function(){
dom.style.backgroundColor = ‘orange’;
}
dom.onmouseup = function(){
dom.style.backgroundColor = ‘white’;
}
}
封装函数一(按下高亮松开恢复)
最新推荐文章于 2022-03-01 17:35:30 发布
封装函数一(按下高亮松开恢复)
function changeColor(dom){
dom.onmousedown = function(){
dom.style.backgroundColor = ‘orange’;
}
dom.onmouseup = function(){
dom.style.backgroundColor = ‘white’;
}
}