Base.prototype.getID=function(id){
var o=document.getElementById(id);
this.ele.push(o);
return this;
};
Base.prototype.getTagName=function(tagName){
var os=document.getElementsByTagName(tagName);
for(var i =0;i<os.length;i++){
this.ele.push(os[i]);
}
return this;
};
Base.prototype.getClass=function(cls){
var os=document.getElementsByClassName(cls);
for(var i=0;i<os.length;i++){
//遍历节点,保存
this.ele.push(os[i]);
}
return this;//返回当前对象,为了连缀
};
//两个参数:修改样式
//一个参数:获取样式
//一个参数:批量修改样式
Base.prototype.css=function(property,value){
//两个参数 设置样式
if(value!=undefined){
//取出节点对象
for(var i in this.ele){
//修改样式
th