【发布时间】:2015-04-26 00:40:16
【问题描述】:
$.ajax({
type: "GET",
url: "../Home/RightPanel",
data:{"movie_name":$(".search_columns").val()},
contentType: "application/json;charset=utf-8",
success: function (res) {
$("#right_panel").html(res);
},
error: function (xhr) {
alert(xhr.responseText);
}
});
我尝试使用 $http 而不是 $.ajax。但它没有用。
【问题讨论】:
-
在你的控制器或服务中注入 $http。然后尝试 $http.get()