取消設(shè)置為什么不行
function Eset()
{
? ? var set=confirm("是否取消設(shè)置?");
? ? if(set==true)
? ? {
? ? ? ?var set1=document.getElementById("txt");
? ? ? ?set1.removeAttribute("style");
? ? }
?
}
function Eset()
{
? ? var set=confirm("是否取消設(shè)置?");
? ? if(set==true)
? ? {
? ? ? ?var set1=document.getElementById("txt");
? ? ? ?set1.removeAttribute("style");
? ? }
?
}
2016-10-14
舉報(bào)
2016-10-14
剛剛測(cè)試了一下,單純的這串代碼沒(méi)什么問(wèn)題,我試了一下也沒(méi)有什么情況。你看看其他的函數(shù)有沒(méi)有括號(hào)什么的多加或少加一個(gè),或者函數(shù)名有沒(méi)有對(duì)應(yīng)到事件上。