取消設置的代碼如下。。。?
//定義"取消設置"的函數 ? ?function cancelSetting(){ ? ? ? ?if(confirm("確定要取消設置嗎?")){ ? ? ? ? ? ?var mychar=document.getElementById("txt"); ? ? ? ? ? ?mychar.removeAttribute('style'); ? ? ? ?} ? ?}
//定義"取消設置"的函數 ? ?function cancelSetting(){ ? ? ? ?if(confirm("確定要取消設置嗎?")){ ? ? ? ? ? ?var mychar=document.getElementById("txt"); ? ? ? ? ? ?mychar.removeAttribute('style'); ? ? ? ?} ? ?}
2016-11-03
舉報
2016-11-09
我的方法是,
2016-11-06
恩。??梢赃\行
2016-11-03
//定義"取消設置"的函數
? ? function cancelSetting(){
? ? ? ? if(confirm("確定要取消設置嗎?")){
? ? ? ? ? ? var mychar=document.getElementById("txt");
? ? ? ? ? ? mychar.removeAttribute('style');
? ? ? ? }
? ? }