码迷,mamicode.com
首页 > 其他好文 > 详细

term work2

时间:2015-08-03 16:11:12      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <head>      <META http-equiv=Content-Type content="text/html; charset="UTF-8">    </head> <script language="javascript">    function send3(id) {      alert(id)     var name=document.getElementById("adname").value      if(name==""){    alert("员工号不能为空")     }else{     alert(name)         document.getElementById("adname").value="" }     }                                          </script>           

   <body  onload =send1()>      <center>     <button onclick=send2()>刷新二维码</button>     <div id="ewm">          </div> <h1>正在签到的员工</h1> <div id="old"> </div> </center>

<h1>添加员工</h1> <div id="old"> <table border="1">   <tr>     <th>员工号</th>     <th>领取礼物</th>   </tr>   <tr>     <td><input type="text" id=adname /></td>     <td> <button  id=1 onclick=send3(this.id)>领取</button>     <button  id=0 onclick=send3(this.id)>不领取</button>  </td> </tr> </table>

</div>

    </body>     </html>

term work2

标签:

原文地址:http://www.cnblogs.com/hansongjiang/p/4699185.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!