首页  >  问答  >  正文

在封装库--连缀【2】中的问题

Base.prototype.css=function(attr,value){

  // this.elements[0].style.attr=value;

  this.elements[0].style[attr] = value;

  return this;

提问:style['color']这种写法是报错的,为什么传参过来就可以?谢谢老师

}


李冲李冲2050 天前1024

全部回复(0)我来回复

暂无回复
  • 取消回复