文章详情页
库的封装问题
浏览:101日期:2024-06-01 18:26:51
问题描述
Base.prototype.css=function(attr,value){
// this.elements[0].style.attr=value;
this.elements[0].style[attr] = value;
return this;
}
问题:下划线那一句中,.style[attr]为什么可以这样?理解不了,老师能解释一下吗?
问题解答
回答1:我知道问题答案了
相关文章:
排行榜

网公网安备