What is the best lightweight JavaScript framework?(最好的轻量级 JavaScript 框架是什么?)
问题描述
我正在寻找一个轻量级的 JavaScript 框架,其主要目的是抽象出浏览器的差异.我主要使用它来创建新的 UI 元素,除了能够为我提供独立于平台的语言和 DOM 的东西之外,我不需要太多东西.
I'm looking for a lightweight JavaScript framework whose primary purpose is to abstract out browser differences. I are primarily using it to create new UI elements, and I don't need much other than something that gives me a platform independent language and DOM.
推荐答案
我目前使用的 JS 库有 3 个:Prototype、jQuery 和 MooTools.Prototype 和 jQuery 是使用最广泛的.jQuery 和 MooTools 是最轻量级的.
There are 3 JS libraries that I currently use: Prototype, jQuery and MooTools. Prototype and jQuery are the most widely used. jQuery and MooTools are the most lightweight.
MooTools 在他们的网站上有一个很好的功能,它允许您构建一个自定义的压缩 .js 文件,其中只包含您需要的模块,根据您正在做的事情制作最轻量级的文件.jQuery 拥有更高的粉丝群,并因此获得更好的支持.
MooTools has a nice feature on their site that allows you to build a custom compressed .js file with only the modules you need, making the lightest, depending on what you're doing. jQuery has a much higher fan base, and better support because of it.
在这 3 个中,我推荐 jQuery,但看看所有可用的选项可能不是一个坏主意.
Of the 3, I'd recommend jQuery, but it's probably not a bad idea to take a look at all the options available.
这篇关于最好的轻量级 JavaScript 框架是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:最好的轻量级 JavaScript 框架是什么?


基础教程推荐
- 如何在特定日期之前获取消息? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01