做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁 - 科技 - 知識百科 - 正文

JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn)

來源:懂視網(wǎng) 責(zé)編:小采 時間:2020-11-27 22:52:23
文檔

JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn)

JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn): 代碼如下:<% response.Expires=-1 response.CacheControl=no-cache %> <!--#include file=../../conn/conn.asp--> <!--#include file=../psw.asp--> <!--#include fi
推薦度:
導(dǎo)讀JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn): 代碼如下:<% response.Expires=-1 response.CacheControl=no-cache %> <!--#include file=../../conn/conn.asp--> <!--#include file=../psw.asp--> <!--#include fi

代碼如下:

<%
response.Expires=-1
response.CacheControl="no-cache"
%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../psw.asp"-->
<!--#include file="../../functions/dofunction.asp"-->
<!--#include file="../../functions/showfunction.asp"-->
<!--#include file="../../fqdb/admin/website.asp"-->
<%
cmd = checkstr(request("cmd"),2)
if cmd="loadteacher" then
response.Charset = "gb2312"
set rs=server.CreateObject("adodb.recordset")
sql="select teacher_id,name from Edu_Person"
rs.open sql,conn,1,3
response.write "{""data"":["
i = 0
do until rs.eof
i = i + 1
response.write "{""Id"":"&rs("teacher_id")&",""Name"":"""&rs("name")&"""}"
if i<rs.recordcount then response.write ","
rs.movenext()
loop
response.write "]}"
response.End()
end if
%>

代碼如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標(biāo)題文檔</title>
<script type="text/javascript" src="../../js/common/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#btn1").click(function(){
//alert("click");
$.ajax({
url:"ajaxtest.asp?cmd=loadteacher",
dataType:"json",
success:function(json){
//var odata = $.parseJSON(json);
var data = json.data;
for(var i = 0,len = data.length;i<len ;i++){
document.writeln(data[i].Name);
}
}
});
});
});
</script>
</head>
<body>
<form id="myform" method="post" action="ajaxtest.asp">
<!--<input type="hidden" name="cmd" value="loadteacher">-->
<select id="tearchers" name="teachers">
<option value="請選擇"></option>
</select>
<input type="button" id="btn1" name="btn1" value="加載老師">
<!--<input type="submit" value="提交">-->
</form>
</body>
</html>

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn)

JQuery的ajax的用法在asp中使用$.ajax()實(shí)現(xiàn): 代碼如下:<% response.Expires=-1 response.CacheControl=no-cache %> <!--#include file=../../conn/conn.asp--> <!--#include file=../psw.asp--> <!--#include fi
推薦度:
標(biāo)簽: 用法 實(shí)現(xiàn) asp
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 益阳市| 三河市| 青阳县| 长汀县| 建水县| 广宗县| 黎川县| 金阳县| 延寿县| 郁南县| 博客| 兰溪市| 会昌县| 襄城县| 确山县| 桂平市| 全州县| 新泰市| 化州市| 宁晋县| 洛隆县| 临高县| 高安市| 崇文区| 理塘县| 枣庄市| 青河县| 龙江县| 建水县| 黎城县| 平凉市| 石狮市| 武定县| 密云县| 紫金县| 宿州市| 张掖市| 漯河市| 宣恩县| 白沙| 讷河市|