取消設(shè)置不能實(shí)現(xiàn)
function offSet(){
? ? ? ? var message = confirm('是否確定取消設(shè)置?');
? ? ? ? var txt1 = docement.getElementById('txt')
? ? ? ? if(massage == true){
? ? ? ? ? ? txt1.removeAttribute('style');
? ? ? ? }
? ? }
function offSet(){
? ? ? ? var message = confirm('是否確定取消設(shè)置?');
? ? ? ? var txt1 = docement.getElementById('txt')
? ? ? ? if(massage == true){
? ? ? ? ? ? txt1.removeAttribute('style');
? ? ? ? }
? ? }
2018-07-17
舉報(bào)
2018-07-18
document寫錯了
2018-07-18
var txt1=document..getElementById('txt')
這行代碼要放到if判斷語句里面去
2018-07-17
txt1.style="";
替換成空字符串就行了