Library packaging issues
李冲
李冲 2019-03-09 22:07:14
0
2
844

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?

李冲
李冲

reply all(1)
李冲

I know the answer to the question

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template