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