jQuery in Action 第1章 《引荐 jQuery 》 引言

1 引荐 jQuery

本章概要

为什么您应该使用 jQuery

并不唐突的 JavaScript 意味着什么

jQuery 的基本元素和概念

结合其他 JavaScript 库使用 jQuery

Considered a “toy” language by serious web developers for most of its lifetime, JavaScript has regained its prestige in the past few years as a result of the renewed interest in Rich Internet Applications and Ajax technologies. The language has been forced to grow up quickly as client-side developers have tossed aside cut-and-paste JavaScript for the convenience of full-featured JavaScript libraries that solve difficult cross-browser problems once and for all and provide new and improved paradigms for web development.

   在它的大部分的生涯里,JavaScript 被严谨的 web 开发者当作“玩具”语言,然而在过去数年间,随着人们对富英特网应用(Rich Internet Application)和 Ajax 技术的重新关注,JavaScript 重获威望。这门语言被迫快速成长,因为客户端开发者已经放弃剪切和粘贴 JavaScript,转而采用方便快捷、功能完备的 JavaScript 库。该库断然地解决跨浏览器问题,而且提供新颖、改善了的 web 开发范式。

   A relative latecomer to this world of JavaScript libraries, jQuery has taken the web development community by storm, quickly winning the support of major websites such as MSNBC, and well-regarded open source projects including SourceForge, Trac, and Drupal.

    作为 JavaScript 库世界的相对的后来者,jQuery 如暴风雪一般横扫 web 开发社区,很快赢得诸如主要网站 MSNBC,和颇受关注的开源项目包括 SourceForge, Trac 以及 Drupal 的支持。

   Compared with other toolkits that focus heavily on clever JavaScript techniques, jQuery aims to change the way that web developers think about creating rich functionality in their pages. Rather than spending time juggling the complexities of advanced JavaScript, designers can leverage their existing knowledge of Cascading Style Sheets (CSS), Extensible Hypertext Markup Language (XHTML), and good old straightforward JavaScript to manipulate page elements directly, making more rapid development a reality.

    和其它聚焦于 JavaScript 灵活技巧的工具包相比,jQuery 旨在改变 web 开发者在创建功能丰富的页面时的思维方式。与其花时··间杂耍 JavaScript 高级复杂的技巧,不如让开发者能借用关于层叠样式表(Cascading Style SheetsCSS),可扩展超文本标记语言(Extensible Hypertext Markup LanguageXHTML),和老好浅易的 JavaScript 的现有知识,去直接操纵页面元素,让更进一步的快速开发成为现实。

   In this book, we’re going to take an in-depth look at what jQuery has to offer us as page authors of Rich Internet Applications. Let’s start by finding out what exactly jQuery brings to the page-development party.

    在本书中,我们将要深入考察 jQuery 给富英特网应用的页面设计者提供了什么。那就开始寻找 jQuery 确实给页面开发的盛宴带来了什么吧。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
in action系列的又一经典,介绍JQuery框架的入门和提升。 JQueryjQuery由美国人John Resig创建,至今已吸引了来自世界各地的众多javascript高手加入其team,包括来自德国的Jörn Zaefferer,罗马尼亚的Stefan Petre等等。   jQuery是继prototype之后又一个优秀的Javascrīpt框架。其宗旨是——WRITE LESS,DO MORE,写更少的代码,做更多的事情。   它是轻量级的js库(压缩后只有21k) ,这是其它的js库所不及的,它兼容CSS3,还兼容各种浏览器 (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。   jQuery是一个快速的,简洁的javaScript库,使用户能更方便地处理HTML documents、events、实现动画效果,并且方便地为网站提供AJAX交互。   jQuery还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。   jQuery能够使用户的html页保持代码和html内容分离,也就是说,不用再在html里面插入一堆js来调用命令了,只需定义id即可。   Jquery是继prototype之后又一个优秀的Javascrīpt框架。对prototype我使用不多,简单了解过。但使用上jquery之后,马上被她的优雅吸引住了。有人使用这样的一比喻来比较prototype和jquery:prototype就像Java,而jquery就像ruby.实际上我比较喜欢java(少接触Ruby 罢了)但是jquery的简单的实用的确有相当大的吸引力啊!在项目里我把jquery作为自己唯一的框架类包。使用其间也有一点点心得,其实这些心得,在jquery的文档上面也可能有讲,不过还是记下来,以备忘罢。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值