getAttribute(“属性”)//获取 比如class 就直接用class而不是className setAttribute(“属性”,”值”)//设置 removeAttribute(“class”);//删除class属性