app.controller(‘searchController’, function ($scope, searchService) {
KaTeX parse error: Expected '}', got 'EOF' at end of input: …Service.search(scope.searchMap).success(
function (response) {
//搜索返回的结果
$scope.searchMap = response;
}
);
}
});
不会报任何错,但是无法查询到数据
解决:
$scope.searchMap 是指的发送的请求的是searchMap,但在接收时应该是:
//搜索返回的结果
$scope.resultMap = response;