我怎么知道哪个文件导致错误

时间:2016-01-15 04:00:43

标签: jquery angularjs

我在Angular APP中收到以下错误,如何找出导致错误的脚本或文件。使用JQuery 2.1

  ReferenceError: $scope is not defined
    at HTMLDocument.eval (eval at <anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:2538), <anonymous>:286:5)
    at j (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:26925)
    at Object.k.add [as done] (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:27234)
    at n.fn.ready (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:29340)
    at n.fn.init (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:24425)
    at n (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:405)
    at eval (eval at <anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:2538), <anonymous>:1:1)
    at eval (native)
    at Function.n.extend.globalEval (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:2538)
    at n.fn.extend.domManip (https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:3:17225) <div ui-view="" class="ng-scope">

0 个答案:

没有答案