标签:false current turn ted etc put com return function
function getStyle(obj, attr, value){
if (!value){
if (obj.currentStyle){
return obj.currentStyle(attr);
}else{
obj.getComputedStyle(attr, false);
}
}else{
obj.style[attr] = value;
}
}
标签:false current turn ted etc put com return function
原文地址:http://www.cnblogs.com/yinweilong/p/6646892.html