我代碼中要寫啥才能取消之前p1樣式的設置???
var p1=document.getElementById("txt");
? ? var p2=confirm("是否取消設置");
? ? if(p2==true){
? ? ? ?//填啥???
? ? }
var p1=document.getElementById("txt");
? ? var p2=confirm("是否取消設置");
? ? if(p2==true){
? ? ? ?//填啥???
? ? }
2018-06-18
舉報
2018-06-18
? ??
填這個
?function ?Regain(){
? ? ? ? ?
? ? ? ? if(confirm("是否取消設置")) {
? ? ? ? ?
? ? ? ? ?var id = document.getElementById("txt");
? ? ? ? ?
? ? ? ? ?id.className ="txt";
? ? ? ? ?
? ? ? ? }
? ? ? ? ?
? ? ?}