Backbone不是在线定义的,而是在localhost上工作

时间:2017-09-12 11:54:22

标签: javascript jquery ajax backbone.js

此代码适用于 localhost ,但它无效在线

我在线收到此错误:

  

未捕获的ReferenceError:未定义Backbone

代码:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="assets/js/libraries/jquery.base64.min.js"></script>
<script src="assets/js/libraries/jQueryRotateCompressed.js"></script>
<script src="assets/js/libraries/filereader.js"></script>
<script src="assets/js/libraries/modernizr.js"></script>
<script src="assets/js/libraries/html5slider.js"></script>
<script src="assets/js/libraries/underscore-min.js"></script>
<script src="assets/js/libraries/backbone-min.js"></script>
<script src="assets/js/libraries/backbone.nopersistence.js"></script>
<script src="assets/js/share.js"></script>
<script src="assets/js/mfanimated.js"></script>
<script src="assets/js/models.js"></script>
<script src="assets/js/ui.js"></script>
<script src="assets/js/startup.js"></script>

错误:Uncaught ReferenceError: Backbone is not defined

1 个答案:

答案 0 :(得分:0)

我检查网络选项卡,发现它们没有正确加载。

问题解决了。

感谢。