<h1>員工查詢</h1><label for="keyword">輸入員工編號:</label><input type="text" id="keyword" /><br /><input type="button" id="search" value="查詢"/><p id="searchResult"></p><h1>員工創(chuàng)建</h1><label for="staffName">輸入員工姓名:</label><input type="text" id="staffName" /><br /><label for="staffNum">輸入員工編號:</label><input type="text" id="staffNum" /><br /><label for="staffSex">輸入員工性別:</label><select id="staffSex"><option>男</option><option>女</option></select><br /><label for="staffJob">輸入員工職位:</label><input type="text" id="staffJob" /><br /><input type="button" value="創(chuàng)建" /><p id="createResult"></p><script>document.getElementById("search").onclick=function(){?? ?var request = new XMLHttpRequest();?? ?request.open("GET","server.php?number=" +document.getElementById("keyword").value);?? ?request.send();?? ?}</script>
AJAX全接觸課程服務器的問題
夜月見黑
2016-08-18 13:19:17