Javascript 角度v1.2.25误差“;fnPtr不是一个函数;

Javascript 角度v1.2.25误差“;fnPtr不是一个函数;,javascript,angularjs,visual-studio,prototype,Javascript,Angularjs,Visual Studio,Prototype,我得到这个错误没有特别的模式。这个页面以前很好用,但现在这个错误把我的一切都搞糟了。有没有一种调试或追踪问题的好方法 Error: fnPtr is not a function Parser.prototype.functionCall/<@http://localhost:15987/Scripts/angular/angular.js:10847:15 OPERATORS["&&"]@http://localhost:15987/Scripts/angular/ang

我得到这个错误没有特别的模式。这个页面以前很好用,但现在这个错误把我的一切都搞糟了。有没有一种调试或追踪问题的好方法

Error: fnPtr is not a function
Parser.prototype.functionCall/<@http://localhost:15987/Scripts/angular/angular.js:10847:15
OPERATORS["&&"]@http://localhost:15987/Scripts/angular/angular.js:10198:45
Parser.prototype.binaryFn/<@http://localhost:15987/Scripts/angular/angular.js:10600:14
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:15987/Scripts/angular/angular.js:12532:34
initialize/$scope.loadReasonCodes/<@http://localhost:15987/scripts/voController.js:286:13
jQuery.Callbacks/fire@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:3062:10
jQuery.Callbacks/self.fireWith@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:3174:7
done@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:8249:5
.send/callback@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:8792:8
@debugger eval code:1:1
consoleLog/<@http://localhost:15987/Scripts/angular/angular.js:10071:18
$ExceptionHandlerProvider/this.$get</<@http://localhost:15987/Scripts/angular/angular.js:7364:7
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:15987/Scripts/angular/angular.js:12559:19
getPoLineDetails/<@http://localhost:15987/scripts/voController.js:347:9
jQuery.Callbacks/fire@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:3062:10
jQuery.Callbacks/self.fireWith@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:3174:7
done@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:8249:5
.send/callback@http://localhost:15987/Scripts/jquery/jquery-1.10.2.js:8792:8
consoleLog/<()angular.js (line 10071)
$ExceptionHandlerProvider/this.$get</<()angular.js (line 7364)
$RootScopeProvider/this.$get</Scope.prototype.$digest()angular.js (line 12559)
initialize/$scope.loadReasonCodes/<()voController.js (line 286)
jQuery.Callbacks/fire()jquery-1.10.2.js (line 3062)
jQuery.Callbacks/self.fireWith()jquery-1.10.2.js (line 3174)
done()jquery-1.10.2.js (line 8249)
.send/callback()jquery-1.10.2.js (line 8792)
consoleLog/<()angular.js (line 10071)
$ExceptionHandlerProvider/this.$get</<()angular.js (line 7364)
$RootScopeProvider/this.$get</Scope.prototype.$digest()angular.js (line 12559)
getPoLineDetails/<()voController.js (line 347)
jQuery.Callbacks/fire()jquery-1.10.2.js (line 3062)
jQuery.Callbacks/self.fireWith()jquery-1.10.2.js (line 3174)
done()jquery-1.10.2.js (line 8249)
.send/callback()

当我对一个变量和一个函数使用相同的名称时,我遇到了这种错误。那是你的案子吗

像这样:

    $scope.search = 'search';
    $scope.search = function(){}

最好的方法是添加带有错误的代码!听起来你好像在使用
fnPtr
某个不应该使用的地方,但是……在这种情况下,它可能是间接的。我的代码中没有提到
fnPtr
。我的句子可能不清楚<代码>fnPtr是一个“一般”错误。在某个地方,某个函数出现了问题。但是没有代码,我们帮不了你。所以它可能与角度无关?它与角度有关。例如,这里有一个语法错误:。它可以是不同的东西,我们不能猜测。@Jood我现在已经检查了我的代码,在HTML视图中,我错误地添加了()。所以,你是对的。非常感谢。
    $scope.search = 'search';
    $scope.search = function(){}