加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 在使用Angular.js的Twitter Bootstrap时是

发布时间:2020-12-18 00:25:11 所属栏目:安全 来源:网络整理
导读:jQLite(使用AngularJS构建)是否足以在Twitter Bootstrap中执行 javascript功能(如下拉列表)? docs.angularjs说: DOM Manipulation from Stop trying to use jQuery to modify the DOM in controllers. Really. That includes adding elements,removing ele
jQLite(使用AngularJS构建)是否足以在Twitter Bootstrap中执行 javascript功能(如下拉列表)?

docs.angularjs说:

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也是一个非常好的选择.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读