<div class="codetitle"> <span><a style="CURSOR: pointer" data="13789" class="copybut" id="copybut13789" onclick="doCopy('code13789')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code13789"> <br><br>< ;類型=“text/javascript” src=“js/jquery.js”><br> <br>function getOtherMessage(){ <br>$.ajax({ <br>type:"post", <br>url:"${pageContext.request.contextPath}/getOtherMessage.do", <br>成功: function(msg){ <br>$("#view"). html(msg) <br>}, <br>error:function(){ <br>alert("錯誤") <br>}; 🎜>}); <br>} <br><br>}); <br>} <br><br><br><br><input type="button" value="修改" onclick="getOtherMessage(); ” /><BR><div id=" view><br> 456<br> </div> <br><br>