1

使用angular-ui-calendar時有問題。在IE8和IE9中不支持值參數的循環引用angular-ui-calendar

當我從加載日曆的地方更改路線時,我最終得到的值參數中的循環引用不受支持。

此外,控制檯顯示錯誤indexOf日曆加載時不支持。

此錯誤僅發生在IE8和IE9

在我的控制器中我已經 $ scope.eventSources = [[{ 「開始」: 「2014-03-07T00:00:00Z」, 「稱號」: 「Ring Child Services」},{「start」:「2014-03-06T00:00:00Z」,「title」:「Check up on incident_2」}]];

,並在HTML模板

<div ui-calendar="uiConfig.calendar" class="col-sm-11 calendar" ng-model="eventSources"> </div> 

任何想法,將不勝感激。

感謝

+0

當你改變路線時,你是否試圖對事件做任何事情? arshaw fullcalendar v1爲自己的事件創建一個循環引用。如果沒有,那麼我建議使用舊版本的uiCalendar來查看它們是否工作。我知道它用IE瀏覽器工作正常,但我在一年內還沒有使用過IE瀏覽器,所以如果瀏覽器崩潰了,我不會感到驚訝。 – joshkurz

回答

0

原來,問題是通過使用$ location.path的location.href而不是改變位置而引起的。

不知道爲什麼location.href引起他的問題,但使用$ location.path解決了這個問題。