<script src="lib/angular/angular.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
<script src="http://include.jaydata.org/datajs-1.0.3.js"></script>
<script src="http://include.jaydata.org/jaydata.js"></script>
<script src="http://include.jaydata.org/jaydatamodules/angular.js"></script>
我得到這個錯誤
TypeError: Class.extend is not a function
at Object.<anonymous> (onsenui.js:13049)
at Object.invoke (angular.js:4535)
at Object.enforcedReturnValue [as $get] (angular.js:4387)
at Object.invoke (angular.js:4535)
at angular.js:4352
at getService (angular.js:4494)
at Object.invoke (angular.js:4526)
at Object.enforcedReturnValue [as $get] (angular.js:4387)
at Object.invoke (angular.js:4535)
at angular.js:4352
並使用此命令時:
<script src="lib/angular/angular.js"></script>
<script src="http://include.jaydata.org/datajs-1.0.3.js"></script>
<script src="http://include.jaydata.org/jaydata.js"></script>
<script src="http://include.jaydata.org/jaydatamodules/angular.js"></script>
<script src="lib/onsen/js/onsenui.js"></script>
注:編輯成更正訂單
jaydata.js:3342 Uncaught TypeError: Cannot read property 'apply' of undefined
任何幫助表示讚賞!
我驗證了jaydata.js文件,發現var Class;已存在 這裏是我找到的代碼 var Class; $ data.Class = Class = new ClassEngineBase(); 但基於這個建議,我發現了一個問題的解決方案: 通過添加引用我擴展的每個對象我將發佈一個答案更多詳細信息 謝謝! –
很高興我能幫上忙。我們可能會在溫泉中解決這個問題,這樣它就不會引起問題,但那將會在溫泉2上。當我們解決它時,也許您可能有興趣使用更新的版本:) –
是的我會等待它,感謝您 –