課程
/前端開發
/JavaScript
/JavaScript入門篇
//定義"取消設置"的函數 function qux(){ ? ?var qu=confirm('確定取消嗎') ? ?if(qu=true){ ? ? ? ?var qu=document.getElementById('txt') ? ? ? ?qu.style.cssText = ""; ? ?}
2016-03-15
源自:JavaScript入門篇 4-1
正在回答
?var b=confirm("取消設置?");?if(b==true){??? a.removeAttribute("style")?}
或者直接歸位
?if(b==true){
?a.style.color="#000";
a.style.backgroundColor="#fff";
a.style.width="600px";
?a.style.height="400px";
?a.style.display="block"
?}
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
3 回答取消設置的方法
2 回答取消設置的方法
1 回答取消設置怎么寫
3 回答取消設置如何寫
3 回答取消設置怎么寫的呢
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-03-15
?var b=confirm("取消設置?");
?if(b==true){
??? a.removeAttribute("style")
?}
或者直接歸位
?if(b==true){
?a.style.color="#000";
a.style.backgroundColor="#fff";
a.style.width="600px";
?a.style.height="400px";
?a.style.display="block"
?}