jQLite(使用AngularJS构建)是否足以在Twitter Bootstrap中执行
javascript功能(如下拉列表)?
DOM Manipulation from Stop trying to use jQuery to modify the DOM in
controllers. Really. That includes adding elements,removing elements,
retrieving their contents,showing and hiding them. Use built-in
directives,or write your own where necessary,to do your DOM
manipulation. See below about duplicating functionality.
解决方法
根据
Angular UI Github,没有.
Native AngularJS (Angular) directives for Twitter's Bootstrap. Small footprint (5kB gzipped!),no 3rd party JS dependencies (jQuery,bootstrap JS) required! http://angular-ui.github.io/bootstrap/
虽然请记住这是专门为Angular UI制作的包装器,但您可能/可能无法轻松使用其他人用此编写的引导插件.
但是使用默认的Angular UI& bootstrap的副本然后你需要jQuery,因为github存储库中的代码已被大量修改,无需jQuery即可运行.
[编辑]正如评论中所述,UI Bootstrap也是一个非常好的选择.