Home  >  Q&A  >  body text

Problems in the package library--Concatenation [2]

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

}


李冲李冲2050 days ago1018

reply all(0)I'll reply

No reply
  • Cancelreply