对象没有't支持属性或方法'loadFull'

Object doesn't support property or method 'loadFull'

本文关键字:方法 loadFull 属性 支持 对象      更新时间:2023-09-26

我在IE11中看到了这个错误。

它似乎与摘要周期中的角度代码有关。堆栈跟踪向下到ng视图

<div class="ng-scope" id="ng-view" ng-view="ng-view" ng-class="{'navbar-hidden': Session.vars.shouldHideNav}" ng-click="Session.hideNavs()">

TypeError:对象不支持属性或方法"loadFull"

TypeError: Object doesn't support property or method 'loadFull'
   at Anonymous function (eval code:17:438)
   at t (eval code:17:95)
   at Anonymous function (eval code:17:168)
   at eval code (eval code:17:2)
   at a.execScript (https://code.jquery.com/jquery-1.11.2.min.js:2:2615)
   at globalEval (https://code.jquery.com/jquery-1.11.2.min.js:2:2589)
   at domManip (https://code.jquery.com/jquery-1.11.2.min.js:3:23105)
   at append (https://code.jquery.com/jquery-1.11.2.min.js:3:20608)
   at Anonymous function (https://code.jquery.com/jquery-1.11.2.min.js:3:22138)
   at m.access (https://code.jquery.com/jquery-1.11.2.min.js:3:3345) <div class="ng-scope" id="ng-view" ng-view="ng-view" ng-class="{'navbar-hidden': Session.vars.shouldHideNav}" ng-click="Session.hideNavs()">

我不确定原因是什么,也找不到loadFull属性或方法想要做什么,或者它来自哪里。

角度版本:1.3.15

最终追踪到这个错误,发现它与无法从服务器加载的模板有关。从angular到服务器的对模板的请求没有正确的路径,而且似乎不尊重head中的<base>标记。

这修复了它。

之前:

<head>
  <title>Page title</title>
  <!-- A bunch of styles and meta tags --> 
  <base href="/">
</head>

之后:

<head>
  <title>Page title</title>
  <base href="/">
  <!-- A bunch of styles and meta tags --> 
</head>

这修复了它。