我用AngularJs通話1.3.4使用angularjs NG-模糊帶的JavaScript
$scope.change = function (id) {
console.log("test onChange... " + id);
};
<input ng-change="change({{question.id}})"
是OK
但<input ng-blur="change({{question.id}})"
有syntaxe錯誤
Error: [$parse:syntax] Syntax Error: Token '{' invalid key at column 9 of the expression [change({{question.id}})] starting at [{question.id}})].
http://errors.angularjs.org/1.3.4/$parse/syntax?p0=%7B&p1=invalid%20key&p2=9&p3=change(%7B%7Bquestion.id%7D%7D)&p4=%7Bquestion.id%7D%7D)
at http://localhost:8080/bower_components/angular/angular.js:63:12