2014-10-06 44 views
0

以下是我嘗試運行角度UI日曆示例時得到的錯誤消息。當我運行angularjs UI日曆時輸入錯誤

類型錯誤:無法讀取屬性在Object.getTokens的未定義 '長度'(應用程序/ bower_components/UI個歷主/ SRC/calendar.js:87:36)

以下是JS文件的順序

  • 「bower_components/JQuery的/的jquery.js」
  • 「bower_components/jQueryUI的/ UI/jquery的-ui.js」
  • 「bower_components /角度/ angular.js」
  • 「bower_components /角-UI-自舉/ UI-bootstrap.js」
  • 「bower_components/UI個歷主/ SRC/calendar.js」
  • 「bower_components/fullcalendar/fullcalendar.js」
  • 「bower_components/fullcalendar/gcal.js」

如何解決這個問題? 謝謝你的幫助。

回答

0

嘗試在你的涼亭配置中包含momen.js。 這就是我如何配置的:

 <!-- Bootstrap --> 
    <script src="js/ui-bootstrap-tpls-0.11.2.min.js"/> 
    <script src="js/bootstrap.min.js"></script> 
    <!-- Javascript Libraries --> 
    <script src="js/lib/moment.min.js"></script> 
    <script src="js/fullcalendar.min.js"></script> 
    <script src="js/calendar.min.js"></script> 
    <script src="js/gcal.js"></script> 
    <script src="js/calendar.js"></script> 
相關問題