getElementById
function modify(){
var p2 = document.getElementById("p2");
p2.className="two";
}其中的var p2 = document.getElementById("p2");这句到底有什么作用?为什么我删了这句也没有任何变化?
function modify(){
var p2 = document.getElementById("p2");
p2.className="two";
}其中的var p2 = document.getElementById("p2");这句到底有什么作用?为什么我删了这句也没有任何变化?
2017-04-08
举报