課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
最后的取消設(shè)置的相關(guān)代碼是什么?我怎么感覺課程里面沒說到 的樣子??
2016-02-14
源自:JavaScript入門篇 4-1
正在回答
查看下面的同學(xué)代碼?。。。。。。。?!
?function setReset()? ??????? {? ??????? var sr = document.getElementById("txt");??????? var srs = confirm("確認(rèn)取消設(shè)置?");??????? if (srs==true)??????? {??????????? sr.style.color = "black";??????????? sr.style.backgroundColor = "white";??????????? sr.style.width = orignWidth;??????????? sr.style.height = orignHeight;??????????? sr.style.display = "block";??????? }??? ?}
或者
?offSet:function(){??????? var message=confirm("你確定要重置所有設(shè)置么?");??????? if(message==true){??????????? txt.removeAttribute('style');??????? }??? }
Strengthen_小易 提問者
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門
1 回答取消設(shè)置的代碼是什么?
1 回答取消設(shè)置 代碼是啥呢?
5 回答取消設(shè)置代碼怎么寫?
3 回答取消設(shè)置的代碼如下。。。?
1 回答為什么取消設(shè)置點(diǎn)了取消以后還是取消了設(shè)置
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-02-15
查看下面的同學(xué)代碼?。。。。。。。?!
?function setReset()?
??????? {?
??????? var sr = document.getElementById("txt");
??????? var srs = confirm("確認(rèn)取消設(shè)置?");
??????? if (srs==true)
??????? {
??????????? sr.style.color = "black";
??????????? sr.style.backgroundColor = "white";
??????????? sr.style.width = orignWidth;
??????????? sr.style.height = orignHeight;
??????????? sr.style.display = "block";
??????? }
??? ?}
或者
?offSet:function(){
??????? var message=confirm("你確定要重置所有設(shè)置么?");
??????? if(message==true){
??????????? txt.removeAttribute('style');
??????? }
??? }