zoukankan      html  css  js  c++  java
  • angularjs 错误集锦

    1. 问题:

    错误信息:

    // IE10 及以上
    TypeError: 无法获取未定义或 null 引用的属性“pager”
       at Anonymous function (http://localhost:9090/AngularProject/1/resources/files/list/component.js?bust=1535512101027:19:5)
       at processQueue (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:17169:13)
       at Anonymous function (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:17217:27)
       at Scope.prototype.$digest (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:18352:15)
       at Scope.prototype.$apply (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:18649:13)
       at done (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12627:36)
       at completeRequest (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12871:7)
       at requestLoaded (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12788:9) Possibly unhandled rejection: {"description":"无法获取未定义或 null 引用的属性“pager”","number":-2146823281,"stack":"TypeError: 无法获取未定义或 null 引用的属性“pager”
       at Anonymous function (http://localhost:9090/AngularProject/1/resources/files/list/component.js?bust=1535512101027:19:5)
       at processQueue (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:17169:13)
       at Anonymous function (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:17217:27)
       at Scope.prototype.$digest (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:18352:15)
       at Scope.prototype.$apply (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:18649:13)
       at done (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12627:36)
       at completeRequest (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12871:7)
       at requestLoaded (http://localhost:9090/AngularProject/1/resources/js/angular.js?bust=1535512101027:12788:9)"}
    
    // IE9
    Error: 拒绝访问。
     Possibly unhandled rejection: {"message":"拒绝访问。
    ","description":"拒绝访问。
    ","number":-2147024891,"resource":{}}

    解决:

    app.config(['$qProvider', function ($qProvider) {
        $qProvider.errorOnUnhandledRejections(false);
    }]);
  • 相关阅读:
    Leetcode: Largest Rectangle in Histogram
    Leetcode: Sum Root to Leaf Numbers
    Leetcode: LRU Cache
    Leetcode: Candy
    Leetcode: Interleaving String
    Leetcode: Implement strStr()
    Leetcode: Gray Code
    Leetcode: Restore IP addresses
    Leetcode: Median of Two Sorted Arrays
    Leetcode: Pow(x, n) and Summary: 负数补码总结
  • 原文地址:https://www.cnblogs.com/liboo/p/9553213.html
Copyright © 2011-2022 走看看