Home > Q&A > body text
Base.prototype.css=function(attr,value){
// this.elements[0].style.attr=value;
this.elements[0]. style[attr] = value;
return this;
Question: The writing style['color'] reports an error, why can it be passed in as a parameter? Thank you, teacher
}