从 AngularJS 教程egghead.io中获取这个,它似乎从来没有命中 logchore 函数:
app.controller("ChoreCtrl", function($scope) {
$scope.logChore = function() {
alert("is done");
}
})
jsfiddle:http: //jsfiddle.net/dingen2010/sFnAr/1/
从 AngularJS 教程egghead.io中获取这个,它似乎从来没有命中 logchore 函数:
app.controller("ChoreCtrl", function($scope) {
$scope.logChore = function() {
alert("is done");
}
})
jsfiddle:http: //jsfiddle.net/dingen2010/sFnAr/1/