Posted in Javascript onFebruary 08, 2014
<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 局部刷新小案例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@