怎樣設(shè)置恢復(fù)原始值?只能一個一個重新復(fù)制原始值嗎?
function q(){
?????????????? var b=confirm("是否取消設(shè)置?");
?????????????? if(b==ture)
????????????? { a.style.removeAttribute("style");
??????????? ?
????????????? }
????????????? else
????????????? alert("結(jié)束");
}
2016-03-24
function q(){
?????????????? var b=confirm("是否取消設(shè)置?");
?????????????? if(b==ture) {a.removeAttribute("style");};
//你的代碼變量后多了 ".style".
2016-03-24
function cancel(){
? ? ? ? ?if(confirm("確認(rèn)取消?")==true){
? ? ? ? ?document.getElementById("txt").style="none";
}
}