取消設置???
function five () { ? ? ? ? ? ?var mychar3=confirm("確定要取消設置嗎?"); ? ? ? ? ? ?if (true) { ? ? ? ? ? ? ? ? var mychar=document.getElementById('txt') ? ? ? ? ? ? ? ? mychar.removeAttribute('style') ? ? ? ? ? ?};
function five () { ? ? ? ? ? ?var mychar3=confirm("確定要取消設置嗎?"); ? ? ? ? ? ?if (true) { ? ? ? ? ? ? ? ? var mychar=document.getElementById('txt') ? ? ? ? ? ? ? ? mychar.removeAttribute('style') ? ? ? ? ? ?};
2016-04-28
舉報
2016-04-28
用emoveAttribute就可以了,
function ?cancle()
{
? ? var str=confirm("你確定要取消修改設置嗎");
? ? if(str)
? ? ? ?document.getElementById("txt").removeAttribute("style")
2016-04-28
quxiao:function()
{
var message=confirm("確認取消設置?");
if(message==true)
{
txt.removeAttribute('style');
}
}