Base.prototype.css=function(attr,value){
// this.elements[0].style.attr=value;
this.elements[ 0].style[attr] = value;
return this;
}
Question: In the underlined sentence, why does .style[attr] work like this? ? I don’t understand. Can the teacher explain it?
I know the answer to the question