jquery ajax基本用法
<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script> <script> $(document).ready(function() { $("button").click(function() { $.get("http://localhost:18080/frontend/REST/customervip/customervip",function(data,status) { alert("数据:"+data+"\n状态:"+status); alert(data[0].vipname); }); }); }); </script>