jquery ajax 局部刷新小案例

时间:2014-02-08    点击:120   
复制代码 代码如下:

<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>
js jquery ajax的几种用法总结(及优缺点介绍)
js日期对象兼容性的处理方法
JS cookie中文乱码解决方法
JS正则表达式验证数字代码
jquery ajax 局部无刷新更新数据的实现案例
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved