課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
function Clear(){ ? ? ?
?? var mychar=confirm("要取消設(shè)置嗎?")?
?? ? ? ?if (mychar==true){ ??
? ? ? ? ?mychar=document.getElementById("txt");?
?? ? ? ? ? ?mychar.style="null";?
?? ? ? ?} ? ?}?
2016-07-23
源自:JavaScript入門篇 4-1
正在回答
function unset(){??????? var mess = confirm("是否取消設(shè)置?");??????? if(mess==true){??????????? var mydiv = document.getElementById("txt");??????????? mydiv.style.cssText="";??????? }??? }
qq_花飄零_03625906 提問者
function num5(){
? ? ? ? if(confirm('是否取消設(shè)置') == true){
? ? ? ? ? ?var n = document.getElementById('txt');
?????????????n.removeAttribute('style');
? ? ? ? }
? ? }
mm小魚醬
舉報
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門
4 回答取消設(shè)置專門沒效果呢?
2 回答取消設(shè)置沒有效果?
2 回答為什么取消設(shè)置沒效果???
4 回答為啥取消設(shè)置不生效
3 回答為什么取消設(shè)置效果沒出來?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-07-23
function unset(){
??????? var mess = confirm("是否取消設(shè)置?");
??????? if(mess==true){
??????????? var mydiv = document.getElementById("txt");
??????????? mydiv.style.cssText="";
??????? }
??? }
2016-07-23
function num5(){
? ? ? ? if(confirm('是否取消設(shè)置') == true){
? ? ? ? ? ?var n = document.getElementById('txt');
?????????????n.removeAttribute('style');
? ? ? ? }
? ? }