第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

點擊查詢按鈕沒有反應,一切按老師步驟來的

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Demo</title>

<style>

*{

font-size:16px;

line-height:1.8;

}

</style>

</head>


<body>

<h1>員工查詢</h1>

<label>請輸入員工編號:</label>

<input type="text" id="keyword">

<button id="search">查詢</button>

<p id="searchResult"></p>

<h1>員工創(chuàng)建</h1>

<label>請創(chuàng)建員工姓名:</label>

<input type="text" id="stuffName"></br>

<label>請創(chuàng)建員工編號:</label>

<input type="text" id="stuffNumber"></br>

<label>請選擇員工性別:</label>

<select id="stuffSex"></br>

<option>男</option>

<option>女</option>

</select></br>

<label>請輸入員工職位:</label>

<input type="text" id="stuffJob"></br>

<button id="save">保存</button>

<p id="createResult"></p>

<script>

document.getElementById("search").onclick=function(){

//發(fā)送ajax查詢請求并處理

var request=new XMLHttpRequest();

request.open("GET","service.php?number="+document.getElementById("keyword").value);

request.send();

}

</script>

</body>

</html>


正在回答

2 回答

我是說在后端操作平臺沒有相關(guān)數(shù)據(jù)顯示


0 回復 有任何疑惑可以回復我~

這個例子用firebug才能看到效果,頁面上是不會有變化的

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Ajax全接觸
  • 參與學習       224773    人
  • 解答問題       708    個

本課程通過一個案例,講解Ajax的相關(guān)概念原理實現(xiàn)方式和應用

進入課程

點擊查詢按鈕沒有反應,一切按老師步驟來的

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號