<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>
网友评论文明上网理性发言 已有0人参与
发表评论: