我是靠谱客的博主 欣慰手机,这篇文章主要介绍jquery ajax 局部刷新小案例,现在分享给大家,希望可以做个参考。

复制代码 代码如下:

<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>

最后

以上就是欣慰手机最近收集整理的关于jquery ajax 局部刷新小案例的全部内容,更多相关jquery内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(236)

评论列表共有 0 条评论

立即
投稿
返回
顶部