取消设置???

来源:4-1 编程挑战

martin111

2016-04-28 00:08

function five () {            var mychar3=confirm("确定要取消设置吗?");            if (true) {                 var mychar=document.getElementById('txt')                 mychar.removeAttribute('style')            };

写回答 关注

2回答

  • 石塘一枝花
    2016-04-28 09:57:47

    用emoveAttribute就可以了,

    function  cancle()

    {

        var str=confirm("你确定要取消修改设置吗");

        if(str)

           document.getElementById("txt").removeAttribute("style")


  • 微笑向暖ii
    2016-04-28 09:29:38

    quxiao:function()

    {

    var message=confirm("确认取消设置?");

    if(message==true)

    {

    txt.removeAttribute('style');

    }

    }

JavaScript入门篇

JavaScript做为一名Web工程师的必备技术,本教程让您快速入门

738661 学习 · 9561 问题

查看课程

相似问题