取消設(shè)置的方法
取消設(shè)置的方法:
?function textnone(){ if(confirm("是否取消設(shè)置?")){?
?? ?con.style="none"; ??
?txt.style="none";
?} }
?記得在input那里加進(jìn)去:函數(shù)名 onclick=“”?textnone()“”
取消設(shè)置的方法:
?function textnone(){ if(confirm("是否取消設(shè)置?")){?
?? ?con.style="none"; ??
?txt.style="none";
?} }
?記得在input那里加進(jìn)去:函數(shù)名 onclick=“”?textnone()“”
2017-06-13
舉報(bào)
2017-06-13
var txt=document.getElementById("txt");
var con=document.getElementById("con");
2017-06-13
為啥 ?con和txt能直接被你拿來當(dāng)變量用?