?var mychar=document.getElementById("txt");//定義"改變顏色"的函數(shù)function changecolor(){??? mychar.style.color="#8e8e8e";??? mychar.style.backgroundColor="blue";}//定義"改變寬高"的函數(shù)function changehw(){??? mychar.style.width="500px";??? mychar.style.height="500px";}//定義"隱藏內(nèi)容"的函數(shù)function hidetext(){??? mychar.style.display="none";}//定義"顯示內(nèi)容"的函數(shù)function showtext(){??? mychar.style.display="block";}//定義"取消設(shè)置"的函數(shù)function removeset(){??? var res=confirm("確定取消設(shè)置?");??? if(res==ture)??? {??????? mychar.removeAttribute("style");?? ??? }}? </script></body></html>
取消設(shè)置,彈出對話框后點擊確定按鈕沒反應(yīng),請問是什么原因?
guan_楓
2015-12-16 10:07:40