為什么用reset做函數(shù)名沒(méi)反應(yīng)?
為什么我定義函數(shù):function reset(){
? ? var mychose = confirm();
? ? if(mychose==true){
? ? ? ?txt1.removeAttribute("style");
? ? }
}
按鈕?<input type="button" value="取消設(shè)置" onclick="reset()">沒(méi)反應(yīng)
為什么我定義函數(shù):function reset(){
? ? var mychose = confirm();
? ? if(mychose==true){
? ? ? ?txt1.removeAttribute("style");
? ? }
}
按鈕?<input type="button" value="取消設(shè)置" onclick="reset()">沒(méi)反應(yīng)
2017-03-16
舉報(bào)
2017-03-17
函數(shù)名不能為reset的,那是保留函數(shù)名。