Javascript 角度控制器$范围符号_
问题找不到符号33;。Javascript 角度控制器$范围符号_,javascript,angularjs,Javascript,Angularjs,问题找不到符号33;。 我需要补充什么?谢谢 \过滤器是underline.js“utility belt”库的一部分。包括 App.controller('todoController', function ($scope) { // create a message to display in our view $scope.todos = [{ name: 'angular', done: false }]; $scope.clearTodo = function
我需要补充什么?谢谢 \过滤器是underline.js“utility belt”库的一部分。包括
App.controller('todoController', function ($scope) {
// create a message to display in our view
$scope.todos = [{ name: 'angular', done: false }];
$scope.clearTodo = function () {
$scope.todos = _.filter($scope.todos, function (todo) {
return !todo.done;
});
};
});
在HTML的“head”部分中。您是否将
下划线.js
文件添加到index.HTML
页面(
)中的
)中?是的。但是在你的问题之后,我添加了下划线.d.ts
,而且效果很好!!=)
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>