什么是最好的轻量级JavaScript框架? [英] What is the best lightweight JavaScript framework?
问题描述
我正在寻找一个轻量级的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.
推荐答案
我目前使用的是3个JS库: 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框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!