function getStyle(obj,attr){
if(obj.currentStyle){
return obj.currentStyle[attr];
}
else{
return getComputedStyle(obj,false)[attr];
}
}eferenceError: currentStyle is not defined
if(obj,currentStyle){
啥意思啊
if(obj.currentStyle){
return obj.currentStyle[attr];
}
else{
return getComputedStyle(obj,false)[attr];
}
}eferenceError: currentStyle is not defined
if(obj,currentStyle){
啥意思啊
2016-01-26