What cross-browser JavaScript libraries exist? [cl

2020-06-09 06:18发布

I'm gearing up to do some Ajax style client-side JavaScript code in the near future, and I've heard rave reviews of jQuery when it comes to this realm. What I'm wondering is:

  • What are all the cross-browser JavaScript libraries out there?

What is the experience using them?

15条回答
够拽才男人
2楼-- · 2020-06-09 06:34

jQuery.

(Added so as to have an entry for voting.)

查看更多
做自己的国王
3楼-- · 2020-06-09 06:35

Do have a closer look at MooTools.

查看更多
【Aperson】
4楼-- · 2020-06-09 06:35

jQuery is a good choice. It leans towards the 'skinny and speedy' side, and allows for some fantastic DOM manipulation.

查看更多
走好不送
5楼-- · 2020-06-09 06:38

I want to report this almost unknown library entitled: "BBC Glow".

Other libraries are praised for bells and whistles, but Glow is about cross-browser support. The project has a clear statement about its goals, and there is also a browsers support table.

It is a solid starting point.

查看更多
戒情不戒烟
6楼-- · 2020-06-09 06:40

Most of the existing answers are either gateways to slimy marketing or libraries long past their due date.

What is conveyed as "cross-browser" is most often "multi-browser", meaning a small umbrella of browsers. Libraries such as Dojo Toolkit and Ext JS (anything by Sencha, really) are guilty of this behavior. jQuery used to behave similarly before some loud calls for sane code arose (the project still has a giant mountain to climb yet). "Cross-browser" most often refers to abstractions for the DOM and a few other APIs.

I've recently completed an HTML DOM library that covers a very wide range of browsers, which I think may interest the community here. The current list is:

  • Internet Explorer 5-9;
  • Firefox 1-13;
  • Opera 5-12;
  • Safari 3.1-5;
  • Chrome 1-4 (presumed to work on all Chrome builds, but Chrome versions remain difficult to test independently); which is the second-widest coverage I've encountered, just trailing another, which I will mention in the next paragraph. The library I've created is entitled: "Matt's DOM Utils" (Utils) and can be accessed via GitHub[[0]] or my own site[1]. It's fully modular and focuses specifically on DOM traversal while providing other utilities such as an Element::classList module.

However, the most comprehensive DOM library on the Internet is David Mark's "My Library". The library contains a giant pile of utilities, with coverage for nearly all browsers beyond Netscape 4. It has a pseudo-modular build stage, and can be very minimal if desired. It can be accessed via GitHub[2] or David's site[3]. I suggest to anyone reading this thread to give that API a thorough glance. I have learned immensely from both the author and the code itself.

查看更多
forever°为你锁心
7楼-- · 2020-06-09 06:41

Prototype FTW.

I do like jQuery, but Prototype serves my needs most of the time. It may just be because I'm more familiar with it, but I seem to get stuff done faster in Prototype than in jQuery.

查看更多
登录 后发表回答