請問大佬們這個取消設(shè)置為什么沒用呢?
//定義"取消設(shè)置"的函數(shù)
function cancle(){
? ? var can=document.getElementById("txt");
? ? can=confirm("確認(rèn)取消設(shè)置嗎?");
? ? if(can==true){
? ? ? ? can.removeAttribute("style");
? ? }
}
//定義"取消設(shè)置"的函數(shù)
function cancle(){
? ? var can=document.getElementById("txt");
? ? can=confirm("確認(rèn)取消設(shè)置嗎?");
? ? if(can==true){
? ? ? ? can.removeAttribute("style");
? ? }
}
2018-08-02
舉報
2018-08-02
function cancel(){
? ? ? ? ? ? var mymessage=confirm("是否取消設(shè)置?");
? ? ? ? ? ? if (mymessage==true){
? ? ? ? ? ? ? ? var id=document.getElementById("txt");
????????????????//之前的設(shè)置應(yīng)該一一設(shè)置成原始值,不能直接寫can.style="none"
? ? ? ? ? ? }
2018-08-02
function cancle(){
? ? var can=document.getElementById("txt");
? ? can=confirm("確認(rèn)取消設(shè)置嗎?");
? ? if(can==true){
? ? ? ? can.style="none";
? ? }
}
這個也沒用。。