标签:
<%@ 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>
标签:
原文地址:http://www.cnblogs.com/hansongjiang/p/4699185.html