<分区>
我刚开始学习 JavaScript,偶然发现了 Underscore.js和 jQuery . Underscore 看起来很酷,但我想知道 jQuery 是否已经提供了类似于 Underscore 的功能。那么,两者都值得使用吗?
<分区>
我刚开始学习 JavaScript,偶然发现了 Underscore.js和 jQuery . Underscore 看起来很酷,但我想知道 jQuery 是否已经提供了类似于 Underscore 的功能。那么,两者都值得使用吗?
最佳答案
取自underscore网站:
It's the tie to go along with jQuery's tux, and Backbone.js's suspenders.
Underscore 更适合数据操作,并为 JavaScript 带来了许多 Ruby 方法。有一些交叉,但不足以使它们相互排斥。
关于javascript - Underscore.js 和 jQuery 可以互补吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8907373/
相关文章:
javascript - 如何在 JavaScript 中选中/取消选中动态单选按钮?
javascript - Javascript 变量命名约定是否推荐使用 'lowercase_separated_by_underscores'?
jquery - 使用 jQuery 在类名末尾获取数值并存储为变量
javascript - 如何将 <select> 与 optgroup 转换为 JSON 数组
javascript相当于python的dictionary.get
javascript - Knockout JS 样式绑定(bind)导致错误