Javascript jQuery DateTimePicker+AngularJS ReferenceError
我正在使用AngularJS与Yeoman、Grunt和Bower。为了使我的一个表单更加用户友好,我决定使用DateTimePicker jQuery插件。一切都在本地服务器上运行,但在推到heroku之后,我得到了一个ReferenceError:在f32148ce.vendor.js的Chrome中没有定义obj,这似乎与Date.createParser函数有关 应用程序: 我目前只是将jQuery脚本添加到index.html文件中的脚本列表中,以及服务中的控制器,例如:Javascript jQuery DateTimePicker+AngularJS ReferenceError,javascript,jquery,angularjs,heroku,Javascript,Jquery,Angularjs,Heroku,我正在使用AngularJS与Yeoman、Grunt和Bower。为了使我的一个表单更加用户友好,我决定使用DateTimePicker jQuery插件。一切都在本地服务器上运行,但在推到heroku之后,我得到了一个ReferenceError:在f32148ce.vendor.js的Chrome中没有定义obj,这似乎与Date.createParser函数有关 应用程序: 我目前只是将jQuery脚本添加到index.html文件中的脚本列表中,以及服务中的控制器,例如: <!-
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/trans.js"></script>
<script src="scripts/controllers/plume.js"></script>
<script src="scripts/controllers/res.js"></script>
<script src="scripts/services/request.js"></script>
<script src="scripts/services/game.js"></script>
<script src="scripts/controllers/auth.js"></script>
<script src="scripts/services/auth.js"></script>
<script src="scripts/services/user.js"></script>
<script src="scripts/xeditable.js"></script>
<script src="scripts/jquery.datetimepicker.js"></script>
<script src="scripts/controllers/resistance.js"></script>
<!-- endbuild -->
您包括jquery库了吗?是的,我想是的。它在本地工作,但在生产环境中不工作。问题是我的脚本顺序,我需要将datetimepicker放在app.js指令之前。
"Error: assignment to undeclared variable obj
Date.createParser@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:24855
Date.parseDate@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:24243
c@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:2084
a.fn.datetimepicker/B@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:18746
a.fn.datetimepicker/<@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:20476
.each@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:1:14157
eb.prototype.each@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:1:12005
a.fn.datetimepicker@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:19796
@http://legends.herokuapp.com/scripts/dc3edbf2.scripts.js:2:29857
d@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:16965
e@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:17044
Rb/this.$get</<@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:1
f/<.link@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:8:23699
s@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:27001
h@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:23074
A/<@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:22688
D/d@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:23515
n@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:4:25469
k@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:8:1
Cc/this.$get</k.prototype.$broadcast@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:26772
m/<@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:8:22279
Ac/h/g.promise.then/k@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:19641
Ac/h/g.promise.then/k@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:19641
Ac/i/<.then/<@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:20328
Cc/this.$get</k.prototype.$eval@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:25534
Cc/this.$get</k.prototype.$digest@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:24050
Cc/this.$get</k.prototype.$apply@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:25862
i@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:4878
r@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:7221
_b/</w.onreadystatechange@http://legends.herokuapp.com/scripts/f32148ce.vendor.js:5:7776
" "<div class="container ng-scope" ng-view="">"