Angular js error
Angular js error
在包括jquery文件之前的angular js文件,angular js给出以下错误,实际上我是用相反的顺序工作,创建一个日期选择器指令,我必须使用以下顺序的js文件,
jquery ->jquery ui ->角js;
使用
<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/angular.js"></script>
我在控制台得到以下错误:
`"Error: f.on is not a function
wd/this.$get<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:85
d@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
$b/q.$injector<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:34
c@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
d@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
$b/q.$injector<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:34
c@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
d@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
k/</<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:42
r@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:9
k/<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:42
d@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
$b/q.$injector<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:34
c@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
v@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:55
U@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:46
M@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:45
M@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:45
Y@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:44
Zb/c/</<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:20
Ed/this.$get</h.prototype.$eval@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:107
Ed/this.$get</h.prototype.$apply@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:108
Zb/c/<@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:20
d@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:32
Zb/c@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:20
Zb@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:20
Uc@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:19
@file:///C:/Users/Samsung/Google%20Drive/www/js/angular.js:208
.ready@file:///C:/Users/Samsung/Google%20Drive/www/js/jquery-1.4.2.min.js:26
L@file:///C:/Users/Samsung/Google%20Drive/www/js/jquery-1.4.2.min.js:33
"`
使用
<script type="text/javascript" src="js/angular.js"></script>
<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
没有问题,一切正常。使用angular js 1.2.14
问题是我使用的jquery版本1.4与angular js版本1.2.14不太好所以当我意识到我改变了版本,现在它运行良好
相关文章:
- Error: timers.js:234 callback.apply(timer, args);
- STRIPE.JS Error
- React.js.Error:<路径>属性d
- angular.js:13424 Error: [$injector:unpr]
- Backbone.js _ensureElement error
- Asp.net and JS Error
- fetch()不调用其Success和Error回调函数(backbone.js)
- Breeze.js OData v4 Error
- angular js Error: [$injector:unpr]
- Magento 2 error in swatchRenderer.js
- Rails 4 ActionController::UnknownFormat format.js error
- http error CORS Node JS
- Angular Js $injector:unpr error
- Node.js https.get.on("error", function(e){...} Not
- error =“类型错误:对象 [对象对象] 在 main.js:33:12 没有方法'addUnique
- net::ERR_CONNECTION_REFUSED Error jQuery ajax node.js
- Error in OBJLoader of THREE.JS lilbrary
- Twitter error with Hello.js
- Highlight.js and IE8 error
- Ember.js+AddThis error;未捕获的类型错误:无法读取属性'呼叫'“未定义”;