課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript入門(mén)篇
亂來(lái)了
2014-07-17
源自:JavaScript入門(mén)篇 4-1
正在回答
var txt = document.getElementById("txt"); // 全局變量 //定義"取消設(shè)置"的函數(shù) function cancelSetting(){ var cancel = confirm("是否取消格式設(shè)置?"); if(true == cancel) { txt.style = "txt"; } }
不錯(cuò), title.style.color=null; 可以也成 title.style.color="";
舉報(bào)
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門(mén)
2 回答為啥不彈窗
1 回答這樣對(duì)嗎?
1 回答注釋的寫(xiě)法
1 回答我的示例代碼,僅供參考了。
3 回答是出啥問(wèn)題了嗎為啥不行
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2014-07-20
var txt = document.getElementById("txt"); // 全局變量 //定義"取消設(shè)置"的函數(shù) function cancelSetting(){ var cancel = confirm("是否取消格式設(shè)置?"); if(true == cancel) { txt.style = "txt"; } }
2014-07-20
不錯(cuò), title.style.color=null; 可以也成 title.style.color="";