課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript入門(mén)篇
取消設(shè)置要怎么寫(xiě)啊,需要什么函數(shù)
2018-01-19
源自:JavaScript入門(mén)篇 4-1
正在回答
function cancel(){? ? var flag=confirm("是否格式化設(shè)置,并恢復(fù)為默認(rèn)設(shè)置?");? ? if(flag==true){? ? ? ? temp.style="txt";? ? }? ? else alert("取消格式化。")}
function cancel(){
? ? var flag=confirm("是否格式化設(shè)置,并恢復(fù)為默認(rèn)設(shè)置?");
? ? if(flag==true){
? ? ? ? temp.style="txt";
? ? }
? ? else alert("取消格式化。")
}
function
shezhi(){
????
var
quxiao=?confirm(
"是否取消設(shè)置?"
);
if
(quxiao==?
true
)?{
???????
quxiao.style="none"
;
function?cancle(){ ????var?canc?=?confirm("是否取消設(shè)置?"); ????var?mychar?=?document.getElementById("txt"); ????if(canc?==?true)?{ ???????mychar.removeAttribute('style'); ????}?else?{ ???????? ????} }
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門(mén)
3 回答”取消設(shè)置“函數(shù)怎么寫(xiě)
2 回答取消設(shè)置的函數(shù)怎么寫(xiě)?
1 回答取消設(shè)置怎么寫(xiě)
1 回答取消設(shè)置函數(shù)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-06-13
2018-01-30
function
?shezhi(){
????
var
?quxiao=?confirm(
"是否取消設(shè)置?"
);
????
if
(quxiao==?
true
)?{
???????
quxiao.style="none"
;
????
}
}
2018-01-19