woaidongmao

文章均收录自他人博客,但不喜标题前加-[转贴],因其丑陋,见谅!~
随笔 - 1469, 文章 - 0, 评论 - 661, 引用 - 0
数据加载中……

40 个轻量级 JavaScript 库

http://www.comsharp.com/GetKnowledge/zh-CN/TeamBlogTimothyPage_K741.aspx

流行的 JavaScript 库不胜枚举,jQuery, MooTools, Prototype, Dojo, YUI。这些 JavaScript 库功能丰富,加上它们的插件,几乎能胜任任何工作,然而这是有代价的,这些库往往导致你的网页尺寸臃肿。在某些场合,如果你只想完成特定的工作,可以使用一些功能更专一的轻量库,本文介绍了40个非常出色的轻量级 JavaScript 库。

这是本文的第一部分,第二部分请参阅40 个轻量级 JavaScript 库(下)

1. 表单相关

wForms
一个低调的开源项目,简化了绝大多数常用 JavaScript 表单功能,包含可以直接使用的表单验证功能,另外,还包含强大的表单同步以及表单条件判断功能。

wForms

Validanguage
又一个低调的 JavaScript 表单验证框架。它拥有集成逻辑,一些设置可以针对全局,单个表单或单个对象。提供两个API,集成 AJAX 支持,缓存,以及回调函数。它提供类似 HTML 的 API 语句,以及面向对象的 JavaScript API 。

Validanguage

LiveValidation
一个轻量的表单验证库。除了传统的验证功能,还提供实时验证,可以一边输入一遍验证。Ruby on Rails 用户可能会发现这个库非常好用,因为他们的命名规则和参数十分近似。该库既有独立版本,又有一个 Prototype 版本。

LiveValidation

yav
一个强大,灵活,可扩展的表单验证库。支持各种场合,从简单的如日期,电子邮件地址以及整数的验证,到复杂的,如正则表达式。内置 AJAX 支持,输出的错误消息可以定位到对象级。

qForms
处理表单的整套方案。功能包括各种验证规则,防止多次发布的机制,以及锁定或解锁制定输入框。

formreform
不基于 table 的多栏设计向来是一个挑战。这个微型库将传统的表单变成漂亮的多栏形式。formreform

2. 动画相关

$fx()
一个用来让 HTML 对象运动的轻量库。你可以在一个时间轴上改变任何 CSS 属性,对于复杂动画,你可以将各种效果结合起来,将对象分组,让它们并行运动。

$fx() JavaScript Animation Library

JSTweener
一个生成中间帧的 JavaScript 库,它的 API 类似著名的中间帧引擎 Tweener。你可以指定动画时间,定义切换效果以及时延。在几乎任何点都可以触动事件。

JSTweener

Facebook Animation
一个强大的,用来创建可定制的,基于 CSS 的动画。在 Facebook 动画中,几行代码就可以改善 UI。语法和 FBJS (用于 Facebook 的库)一样。

FX
一个语法类似 YUI 的轻量 JavaScript 库,可以为几乎任何 CSS 属性创建中间帧。支持颜色和滚动动画,为对象设置 to 和 from 值就可以了。

3. 视觉与图形效果

JS charts
支持柱状图,圆饼图以及简单的曲线图。直接将这个库插入网页,然后从 XML 文件或 JavaScript 数组变量调用数据。PNG 格式,兼容所有主要浏览器。

JS Charts

Canvas 3D JS Library (C3DL)
C3DL 使 3D 程序的编写变得简单。提供一套数学,场景与 3D 对象类,可以直接在浏览器中开发 3D 内容,不需要很深的 3D 知识。

C3DL

Processing.js
这是 Processing 语言在 JavaScript 的移植。2D输出功能丰富。提供了绘图,色彩处理,字体,对象等处理函数。

Processing.js

Rapha?l
一个让人惊叹的 JavaScript 库,可以在 Web 上实现矢量图。使用 SVG, VML 创建的图形可以被更改或绑定事件。功能极其丰富,包括旋转,动画,缩放等。

Raphael: Vectors With JavaScript

ImageFX
该 JavaScript 库为图片添加效果,如虚化,锐化,浮雕,加亮等。ImageFX 使用画布对象实现这些效果,兼容所有主流浏览器。这个库非常容易使用,只要将 .js 库文件插入网页,调用那些函数即可。

Imagefx

Pixastic
Pixastic 使用 HTML5 画布对象,允许对原始像素进行操作。效果包括去饱和度,灰度级,反转,亮度,对比度调整,色调,饱和度调整,以及浮雕,虚化等效果。因为用到了 HTML 5 的画布对象,因此还无法兼容所有浏览器。

Reflection.js
一个很低调的 JavaScript 自动实现倒影效果。倒影的高度,透明度可以调整。支持所有主流浏览器,文件尺寸小于5K。

Reflection.js

4. 数据库

Taffy DB
一个 JavaScript 库,可以看作浏览器中的 SQL Server,或高级数组管理器。在使用了 AJAX 的程序中,可以用作数据库层,可以创建,读取,编辑,删除数据,使用循环,排序以及高级查询。

ActiveRecord.js
这个库支持 Google Gears 以及 Chrome,Aptana Jaxer, Adobe AIR 以及任何支持 HTML 5 SQL 细则的平台(目前有 Webkit 以及 iPhone)。可以自动创建表,验证和同步数据。

ActiveRecord.js

 

 

http://www.comsharp.com/GetKnowledge/zh-CN/TeamBlogTimothyPage_K742.aspx

流行的 JavaScript 库不胜枚举,jQuery, MooTools, Prototype, Dojo, YUI。这些 JavaScript 库功能丰富,加上它们的插件,几乎能胜任任何工作,然而这是有代价的,这些库往往导致你的网页尺寸臃肿。在某些场合,如果你只想完成特定的工作,可以使用一些功能更专一的轻量库,本文介绍了40个非常出色的轻量级 JavaScript 库。

这是本文的第二部分,第一部分参见40 个轻量级 JavaScript 库 (上)

5. 字符串与数学函数

Date.js
和日期打交道不是件容易事,有很多格式要处理。Datejs 可以很好地处理简单或复杂的日期函数。可以将日期解析出诸如“Next thursday”,“+2 years”一类的格式,也支持所有日期形式,如 2009.01.08, 12/6/2001。

Datejs

Sylvester
一个处理矢量和点阵的数学 JavaScript 库,包含多维矢量和点阵建模类,以及在3D空间的一些模型。

Sylvester

Pretty Date
一个很出色的 JavaScript 库,用一种很漂亮,很友好的方式显示日期,如下图所示。

Pretty Date

XRegExp
JavaScript 中的 RegExp 对象已经支持正则表达式,XRegExp 增加了更多未来浏览器可能包含的功能(ECMAScript 4 - ES4)。该库对 RegExp 对象进行缓存,重用并增加了众多新功能。

JavaScript URL Library
一个用来处理 URL 的 JavaScript 库,可以对 URL 中的任意部分进行处理。

6. Fonts

typeface.js
这个库可以让你在网页中使用任意字体,但和 sIFR 以及 FLIR 这些基于 Flash 的方案不一样,typeface.js 100% 基于 JavaScript,只需将你的字体文件上传到一个基于 Web 的生成器那里,再将生成的 JavaScript 文件下载回来包含到网页中即可。

Typeface.js

Cufón
和 typeface.js 很相像,Cufón 也可以让你在网页中使用任意字体,同样,它也是使用一个生成器,将字体转换成 VML,将生成的 .js 文件包含到网页即可。

7. 调试与记录

Blackbird
人们经常使用 Alert() 调试 JavaScript 程序,Blackbird 提供了一个漂亮的控制台记录,查看,过滤程序的运行。

Blackbird

NitobiBug
基于浏览器的跨浏览器 javaScript 对象记录与检查工具。

NitobiBug

Firebug Lite
目前最好的 JavaScript 调试工具非 Firebug 莫属,然而该工具只支持 FireFox,将 Firebug Lite .js 文件插入你的网页,就可以在所有浏览器都实现 FireBug 功能。

Firebug Lite

8. 其它

swfobject
这是一个最受欢迎的对 Flash 对象进行引用的方法。可以生成标准 swf 引用代码,并探测用户播放器版本。如果用户版本不支持,会显示备用内容。

swfobject

sorttabledragtable
不管你喜欢与否,table 仍然是最好的表现数据的方式,但可以更好地利用。sorttable 可以让表格数据排序,只需在 table 上加一个 class="sortable" 标志,还可以排除指定的栏。dragtable 让表格的栏可以拖动,在表格上加上 class="dragable" 标志即可,这两个类可以结合起来使用,只需加上 class="sortable dragtable" 即可。

DD_roundiesDD_belatedPNG
DD_roundies 可以不依赖图片实现圆角功能,只面向 IE, 通过 VML 实现,其它浏览器会被略过,因为那些浏览器本身支持 CSS 圆角。

JavaScript Rounded Corners

DD_belatedPNG 是为了解决 IE6 对 PNG 支持不好问题而开发的,不管 PNG 图片用于 src 还是 background-image,DD_belatedPNG 都能提供修补。

Custom JavaScript Dialog Boxes
一个只有 4.5K 的轻量 JavaScript 库,可以创建用户定制对话框,可显示4种类型的消息框,alerts, warnings, prompts, success。可以设定消息框标题,内容,以及过多长时间显示。

Custom Dialog Boxes

GameJS
GameJS 是微软的 XNA 游戏框架在 JavaScript 上的移植,使用 canvas 对象作为输出设备。JavaScript 不是最佳游戏平台,但对那些帧率较低的游戏也没有问题。

GameJS

Shortcuts.js
从 Google Reader 和 Gmail 开始,Web 程序中的快捷键开始流行起来。Shorcuts.js 让快捷键的处理变得简单。

Mapstraction
有不少地图提供商都提供不同 API,如果你要更换提供商,比如从 Google Maps 到 MapQuest,需要更新代码,Mapstraction 提供了常用地图提供商的 API,只需该一行代码就能完成转换。

Mapstraction

Amberjack
一个只有 4K 的微型 JavaScript 库,可以为你的网站添加漂亮的教程功能,一个模式窗口会以教程的形式显示任意内容,教程中的步骤可以通过手工编码实现或在线自动生成。可以使用主题或 CSS 控制内容的格式。

Amberjack

JsLoad
JsLoad 可以从 Google server 远程加载各种 JavaScript 库,可以自动加载各种版本的支撑库。

posted on 2009-03-06 23:36 肥仔 阅读(3184) 评论(17)  编辑 收藏 引用 所属分类: Web-前台

评论

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

The a href="http://www.exclusivepapers.com">essay writing</a> just about this good post, I will detect at the writing service. Purchase the pre written essay and a href="http://www.exclusivepapers.com">custom essay</a> just about this post.
2010-06-09 21:11 | MillerANASTASIA32

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

The fantastic knowledge about this good topic must be a ground for thesis or dissertation writing service and be utilized in student dissertation.
2010-06-12 14:18 | thesis

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Different people go to writer job service, with the aim to facts just about this good post.
2010-07-25 05:21 | writing job onlne

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

It can be not complicated to satisfy your academic needs when you buy essay paper at masters writing service.
2011-08-02 13:08 | do my essay

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Want to find trustworthy custom essay papers writing service? Hence, you're in a correct point to buy papers online. Numbers of people visit our internet site and order course writing assignments of solid quality.
2011-08-06 23:41 | buy papers online

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

The research essays writing evolves personal writing ability. Nevertheless, if you purchase research papers at the essay writing service, it should make better the writing skillfulness too. Thus, this good to compose poetry essay or just order it.
2011-08-26 09:10 | essay writing service

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Have no money to buy a car? Worry not, because it is achievable to receive the credit loans to resolve all the problems. Therefore take a auto loan to buy all you want.
2011-09-02 13:48 | home loans

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Financial situation in the entire world prompted academic papers writing services reduce prices for customized papers. People are able to get information how to write a research paper for good costs at this moment.
2011-09-16 15:25 | paper buy

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

If you are in uncomfortable position and have got no money to go out from that, you will need to receive the mortgage loans. Just because that will help you for sure. I get term loan every year and feel fine just because of it.
2011-10-23 01:22 | credit loans

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

I surely should follow your fantastic thought while the book reports and america essays paper writing. Thence, thanks for work.
2012-04-22 21:26 | middle east essays

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

I agree with this analysis more than any I have seen until this time on the internet. I like that it isn't written in cocky language. Thank you so much. I will definitely keep in touch, because I need term papers online (essaysprofessors.com) to solve all my problems.
2012-05-30 13:45 | research paper help

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

At this page I have an excellent chance to achieve optimal solutions to all writing dilemmas and let real professionals write my essay research paper.
2012-06-10 03:40 | college papers

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Some people transpire the duty to qualified writers because they lack the ability to compose a good paper about this good topic thats the reason why people need to use plagiarism checker plagiarismsearch.com, but such guys like creator don't do that. Thanks for the article
2012-06-10 14:49 | plagiarism checker

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Thanks a lot for the custom essay plus connecting with this good topic. This is very good to follow the blog "primewritings.com"!
2012-06-10 19:30 | custom essay writing

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Human entered the time of online marketing. The social bookmarking service became very spread. Frequently, it occurs that your business getting not really good and you do not know the way to resolve such a problem! Therefore, submission corporations seem to be very good variant.
2012-06-16 15:07 | bookmark service

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

I’ve ne'er watched such topics about this good topic. I would opt for the term paper writing service buy an essay (primeessays.com) and order an essay about that!
2012-06-16 22:28 | Essay Writing

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

That’s not very expensive to opt for the dissertation writing service take the best fact as this topic and utilize for thesis service "topdissertations.com". And the writing services will thank you for this!
2012-07-09 23:02 | thesis writing

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Nowadays, there exist a lot of academic writing agencies which offer custom writing help, but I suggest you to get in touch with Essays experts company and get assistance in writing research papers from the most trustworthy company.
2012-07-10 01:26 | custom college essay papers

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Buildings are quite expensive and not every person can buy it. Nevertheless, loan goodfinance-blog.com are invented to support people in such situations.
2012-07-10 01:58 | home loans

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Resent time, custom academic writing corporations are very popular. Furthermore, it's a general thing to buy paper writing online.
2012-07-10 03:12 | critical essays

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

When people are insure what to select, term papers or just poetry & poets essays manyessays.com, they will turn to you, because you know how to complete the smashing data.
2012-07-10 19:02 | ancient essays

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

RSS feeds submission options are the most workable internet marketing method. I claim that rss submission directories service can definitely help your internet site and your contents. Your traffic will become well optimized.
2012-08-02 08:36 | seo package

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Check Web site if you are in need to get custom writing uk.
2012-08-20 17:39 | uk writing service

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Whenever you are aware that you are out of time so as to do your papers for college, turn to custom writing services and buy essay writing at them. The best essay writing service review (best-essay-sites.com) will warn you against corrupt bureaus which propose so-called quality aid.
2013-04-30 21:48 | BuyEssay.org rewiew

# re: 40 个轻量级 JavaScript 库  回复  更多评论   

Have no idea which firm to choose to get help from? Go over Custom-Essay testimonials (best-essay-sites.com), and take a good decision.
2013-04-30 21:51 | Best-essay-sites.com

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理