課程
/前端開發
/JavaScript
/JavaScript入門篇
最后的取消設置的相關代碼是什么?我怎么感覺課程里面沒說到 的樣子??
2016-02-14
源自:JavaScript入門篇 4-1
正在回答
查看下面的同學代碼?。。。。。。。。?/p>
?function setReset()? ??????? {? ??????? var sr = document.getElementById("txt");??????? var srs = confirm("確認取消設置?");??????? 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("你確定要重置所有設置么?");??????? if(message==true){??????????? txt.removeAttribute('style');??????? }??? }
Strengthen_小易 提問者
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
1 回答取消設置的代碼是什么?
1 回答取消設置 代碼是啥呢?
5 回答取消設置代碼怎么寫?
3 回答取消設置的代碼如下。。。?
1 回答為什么取消設置點了取消以后還是取消了設置
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-02-15
查看下面的同學代碼?。。。。。。。。?/p>
?function setReset()?
??????? {?
??????? var sr = document.getElementById("txt");
??????? var srs = confirm("確認取消設置?");
??????? 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("你確定要重置所有設置么?");
??????? if(message==true){
??????????? txt.removeAttribute('style');
??????? }
??? }