jQuery使用post方法提交數(shù)據(jù)實例
來源:易賢網(wǎng) 閱讀:1094 次 日期:2015-05-05 15:13:39
溫馨提示:易賢網(wǎng)小編為您整理了“jQuery使用post方法提交數(shù)據(jù)實例”,方便廣大網(wǎng)友查閱!

<!DOCTYPE html>

<html>

<head>

<script src="js/jquery.min.js">

</script>

<script>

$(document).ready(function(){

$("button").click(function(){

$.post("demo_test_post.asp",

{

name:"Donald Duck",

city:"Duckburg"

},

function(data,status){

alert("Data: " + data + " Status: " + status);

});

});

});

</script>

</head>

<body>

<button>發(fā)送POST數(shù)據(jù)并獲取返回結(jié)果</button>

</body>

</html>

更多信息請查看IT技術(shù)專欄

更多信息請查看腳本欄目
易賢網(wǎng)手機網(wǎng)站地址:jQuery使用post方法提交數(shù)據(jù)實例
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權(quán)所有:易賢網(wǎng)