<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript">
     function  thisTest(obj) { 
          alert(obj.getAttribute('dept'));
     }
     function showguid(){
       var a=document.getElementById("guid");
       a.onclick=function(event){ 
       alert(a.getAttribute('guid'));
       a.setAttribute('guid','5555555555555555')
       }
     }

</script>

</head>
<body onload="showguid();">
    <form >
    <div>
        <input type="button" name="thistest" 
            dept="总部" onclick="thisTest(this)" />
        <input type="button" gu></input>
    </div>
    </form>
</body>
</html>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-03-03
  • 2021-10-07
相关资源
相似解决方案