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