//Set CSS
Base.prototype.css= function(attr,value) {
for(var i=0;i<this.elements.length;i ){
if (arguments.length==1){
return getStyle(this.elements[i],attr);
}
this. elements[i].style[attr] = value;
##TypeError: this.elements[i].style is undefined
base.js (line 75, column 3) this.elements[i].style[attr] = value; This sentence always reports an error and cannot be found Error
came out
If you study Li Yanhui’s tutorial, try to use the same version of Javascript