欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery ajax 局部刷新小案例

 更新時間:2014年02月08日 09:04:15   作者:  
這篇文章主要是對jquery ajax 局部刷新的小案例進行了介紹,需要的朋友可以過來參考下,希望對大家有所幫助
復(fù)制代碼 代碼如下:

<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function getOtherMessage(){
$.ajax({
type:"post",
url:"${pageContext.request.contextPath}/getOtherMessage.do",
success:function(msg){
$("#view").html(msg);
},
error:function(){
alert("wrong");
}
});
}
</script>
</head>
<body>
<input type="button" value="修改" onclick="getOtherMessage();" />
<div id="view">
456
</div>
</body>
</html>

相關(guān)文章

最新評論