`
buliedian
  • 浏览: 1195823 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

jQuery 1.4 Released, Happy 4th Birthday jQuery

阅读更多

来自jquery官方网站的消息 ,目前最流行的JavaScript/Ajax库jQuery新版本1.4已经发布,为jQuery项目4周年14天庆祝送上一份大礼。

  1.4的压缩版只有23K,未压缩版154K。此外,Google也在自己的服务器上提供了副本,作为Google Ajax API的一部分,可以直接引用。

  jQuery 1.4对代码库进行了内部重写组织,开始建立一些风格规范。老的core.js文件被分为attribute.js, css.js, data.js, manipulation.js, traversing.js和queue.js。CSS和attribute的逻辑分离。并修正了207个老版本的错误。

  主要新特性有:

  1. 常用方法的性能大幅提升 。重写了大部分较早期的函数。

  2. 更容易使用的设置函数 (setter function)。为所有对象新增了许多易用的设置函数。

  3. Ajax方面的改进 。引入了许多Ajax和JSON处理方面的更新,包括HTML5元素的序列化。

  此外,attribute(改进了.attr()的性能)、jQuery()核心函数、CSS(.css()性能有两倍提升)、特效和事件、DOM操作等也有显著改进。

翻译自:http://techie-buzz.com/internet-tools/jquery-14-released-on-4th-jquery-birthday.html

以下是官方文档:

JQuery 1.4 Roadmap

From jQuery JavaScript Library

Jump to: navigation , search
<!-- start content -->

ROUGH NOTES This is just some rough notes for things to look at for 1.3.x/1.4.

Contents

[edit ]

Core

  • jQuery.require (require JavaScript modules and CSS to load before ready runs)
 jQuery.require("foo.js");

jQuery.require("foo2.js");

jQuery(function(){ ... });

See also xLazyLoader

  • Dynamic loading of modules when they're needed (would require synchronous script loading in core)
  • $.ready failover. If not enough functionality is provided, have ready gracefully not load.
  • Widget Factory
  • .toArray() (As alternative to .get())
  • .get(-1) Allow for negative numbers to .get().
  • $.isObject() (Possibly for use by deep extending)
  • Use $.isArray() and $.isObject() for deep extending Discussion , Discussion
  • Implicit ready event like Mike Alsup is doing with his plugins now .
[edit ]

DOM

  • $.contains (determine if an element is inside another one)
 jQuery("div").contains(DOMElement)

[edit ]

Selectors

[edit ]

Attributes / CSS

[edit ]

Data

[edit ]

Offset

[edit ]

Events

[edit ]

Ajax

 $.ajax(type, url, options);

  • Support options argument in $.get and $.post
 $.get(url, data, dataType, options);

$.post(url, data, dataType, options);

[edit ]

Effects

[edit ]

Structure

  • Reduce the number of function calls needed for common jQuery methods
  • Split up jQuery structure into smaller modules (core, traversing, manipulation, attributes/css)
  • Make it possible to only load the core module and be able to load all the rest dynamically
    • Seems like this would force us to expose a lot of the private methods/properties we have right now and potentially ditch the use of a closure.
  • Passing the XHTML test suite
  • Passing Object.prototype tests
  • Cache static objects
  • Standardize RegExp usage (in 1.3.3)
  • Improve RegExp Callbacks (in 1.3.3)
  • Working in evalInSandbox
  • Keep a separate data() cache for the document object (to avoid any obvious pollution).
  • Work as a Caja Gadget [2] [3]
[edit ]

Testing

  • Runnable DOM Ready tests
  • Object.prototype tests
  • Integrate test suites from plugins into jQuery test suite
[edit ]

Misc

分享到:
评论

相关推荐

    jquery1.4 jquery,jquery-1.4,jquery1.4,最新jquery.js,jquery-1.4.min.js

    jquery1.4 最新jquery.js包含jquery-1.4.min jquery,jquery-1.4,jquery1.4,最新jquery.js,jquery-1.4.min.js

    JQuery1.4.js和JQuery1.4_API

    包括JQuery1.4.js和JQuery1.4帮助手册。对学习Ajax和javascript的朋友很有帮助。

    JQuery1.4 文档及源码

    JQuery1.4 文档及源码JQuery1.4 文档及源码

    jQuery1.4API(中文)

    jQuery1.4API(中文手册) jquery教程chm格式

    jquery 1.4手册【中文版】

    jquery 1.4 手册 中文版 jquery 1.4 手册 中文版 jquery 1.4 手册 中文版

    JQuery1.4中文文档

    JQuery1.4中文API文档,喜欢的朋友可自由下载。All For One,One For All!

    JQuery1.4下载

    为庆祝jQuery的四周年生日,jQuery官方团队正式发布了jQuery 1.4版本。在这个版本中,jQuery官方团队做了大量的编码、测试和文档工作,相对之前版本自然改进不少,让我们一起来看看有那些新变化吧。

    jquery 1.4.x中文api

    经过4天的努力,终于完工了。 由于赶上中国农历新年,本人未能及时制作成CHM版本,特意在开工的当天将其整理完成,由于时间赶的比较急,难免会有错误,如发现错误,请联系本人,我将会及时修正。 自从jQuery面世...

    jquery1.4中文手册

    jquery1.4中文手册jquery1.4中文手册jquery1.4中文手册jquery1.4中文手册

    JQuery_1.4_API.CHM JQuery_1.4_API.CHM

    JQuery_1.4_API.CHM JQuery_1.4_API.CHM JQuery_1.4_API.CHM JQuery_1.4_API.CHM

    JQuery1.4 API

    JQuery1.4 API chm文档,方便JQuery开发。

    jquery1.4中文手册(CHM)

    jquery1.4中文手册,CHM格式,一个很不错的jQuery中文教程,包含jquery-1.4.1.min.js、jquery-1.4.1.js和jquery-ui-1.8rc1

    最新JQuery类库 -- JQuery1.4

    最新JQuery类库 -- JQuery1.4 最新JQuery类库 -- JQuery1.4

    jquery1.4 api

    jquery1.4 api,大家可以下载来学习和使用

    jquery1.4 API中文参考手册chm格式下载

    强大的jquery,在官方刚发布不久jquery1.4版本,相信有不少朋友已经下载最新版本的jquery放在网站来使用了吧,jquery1.4版本怎么说都比以前的版本更强大,所以有一些新的调用函数大家不知道怎么使用的,要有一本API...

    jQuery 1.4参考手册.zip

    2010年1月22日,更新至JQuery 1.4版本,本版是参考shawphy的1.4在线版本(http://jquery-api-zh-cn.googlecode.com/svn/trunk/xml/jqueryapi.xml)制作,更新了好多以前的内容,以前没仔细核对过,发现之前网上流行...

    jQuery 1.4中文API文档发布,chm格式

    jQuery 1.4中文API文档发布,chm格式 jQuery 1.4中文API文档发布,chm格式 jQuery 1.4中文API文档发布,chm格式

    jquery1.4下载

    jquery1.4下载jquery1.4下载jquery1.4下载jquery1.4下载jquery1.4下载jquery1.4下载

    Jquery1.4(最新版本)

    Jquery是继prototype之后又一个优秀的Javascript框架

    Jquery1.4 API

    Jquery1.4 API 最新版本的JQuery框架 压缩中含有完整版JQuery API 和精简版本

Global site tag (gtag.js) - Google Analytics