$(document).ready(function() {$.ajax({url: "http://123.207.88.84:8080/zdm/AppApi/Search/CategoryList",data: sendData,type: "POST",dataType: "json",}).done(function(json) {_this.message = json;console.log(json);}).fail(function(xhr, status, errorThrown) {alert("Sorry, there was a problem!");console.log("Error: " + errorThrown);console.log("Status: " + status);console.dir(xhr);}).always(function(xhr, status) {console.log("The request is complete!");});// Your code here.}); //ready
jquery请求数据
原文地址:http://www.cnblogs.com/thankyouGod/p/7748468.html