<script type="text/javascript">
var URL= "${pageContext.request.contextPath}/rest/xxxService/xxxMethod.json"; $("#XXX").click(function(){ $.post(URL,{ 参数:value, ..... : ........ },function(result){ if(判断返回结果){ ............... } },"json"); */ });
</script>