【发布时间】:2014-11-02 21:00:31
【问题描述】:
我正在调用 callKeywords 之类的,
<input type="text" ng-change="keywordsList()" ng-model="searchkeyword.keystring" class="typeahead">
但它会导致 jquery 文件出错。
我在控制器中的功能:
$scope.callKeywords = function() {
$http.get(myurl).then(calbacksuccess1,calbackerror1);
function calbacksuccess1(response)
{
alert(response);
}
function calbackerror1(failure)
{
alert(failure);
}
}
【问题讨论】:
-
调用服务后是否会调用警报?
标签: javascript jquery angularjs angularjs-scope typeerror