jQuery参考手册

出版时间:2010-10  出版社:东南大学出版社  作者:jQuery社区专家  页数:451  
Tag标签:无  

前言

When I first started work on building jQuery, back in 2005, I had a simple goal in mind:I wanted to be able to write a web application and have it work in all the majorbrowsers——without further tinkering and bug fixing. It was a couple of months beforeI had a set of utilities that were stable enough to achieve that goal for my personal use.I thought I was relatively done at this point; little did I know that my work was justbeginning.Since those simple beginnings, jQuery has grown and adapted as new users use thelibrary for their projects. This has proven to be the most challenging part of developinga JavaScript library; while it is quite easy to build a library that'll work for yourself ora specific application, it becomes incredibly challenging to develop a library that'll workin as many environments as possible (old browsers, legacy web pages, and strangemarkup abound). Surprisingly, even as jQuery has adapted to handle more use cases,most of the original API has stayed intact.

内容概要

jQuery简化了丰富的、交互Web前端的构建过程。学会上手这个JavaScript库不难,但是若要全面掌握、深入理解,恐怕得花费多年时间。奉书合理地缩短了学习曲线。在各个章节中,你将从很多领先的开发者那里学习模式和实践,他们到处使用jQuery,从将简单组件整合进网站到开发复杂的高性能用户界面。作为JavaScript新手和行家的理想选择,《jQueryyCookbook》从基础知识开始,然后转向实际用例,包括经验证的解决方案和常见的Web开发障碍。你还能看到高级议题相关章节,如将jQuery应用到大型项曰中去的方法等。    解决包括事件、效果、维度、表单、主题以及用户界面元素等在内的各种问题。学习如何优化表单,以及如何在页面上定位和重定位元素最大化运用jQuery的事件管理系统,包括定制事件和定制事件数据。创建UI元素——包括标签、折叠、模态——从头做起优化代码以减少瓶颈并保证高峰性能。学习如何测jQuery应用。应用jQueryUICSS框架和主题。

书籍目录

ForewordContributorsPreface1. jQuery Basics  1.1 Including the jQuery Library Code in an HTML Page  1.2 Executing jQuery/JavaScript Coded After the DOM Has Loaded but Before Complete Page Load  1.3 Selecting DOM Elements Using Selectors and the jQuery Function  1.4 Selecting DOM Elements Within a Specified Context  1.5 Filtering a Wrapper Set of DOM Elements  1.6 Finding Descendant Elements Within the Currently Selected Wrapper Set  1.7 Returning to the Prior Selection Before a Destructive Change  1.8 Including the Previous Selection with the Current Selection  1.9 Traversing the DOM Based on Your Current Context to Acquire a New Set of DOM Elements  1.10 Creating, Operating on, and Inserting DOM Elements  1.11 Removing DOM Elements  1.12 Replacing DOM Elements  1.13 Cloning DOM Elements  1.14 Getting, Setting, and Removing DOM Element Attributes  1.15 Getting and Setting HTML Content  1.16 Getting and Setting Text Content  1.17 Using the $ Alias Without Creating Global Conflicts2. Selecting Elements withjQuery  2.1 Selecting Child Elements Only  2.2 Selecting Specific Siblings  2.3 Selecting Elements by Index Order  2.4 Selecting Elements That Are Currently Animating  2.5 Selecting Elements Based on What They Contain  2.6 Selecting Elements by What They Don't Match  2.7 Selecting Elements Based on Their Visibility  2.8 Selecting Elements Based on Attributes  2.9 Selecting Form Elements by Type  2.10 Selecting an Element with Specific Characteristics  2.11 Using the Context Parameter  2.12 Creating a Custom Filter Selector3. Beyond the Basics   3.1 Looping Through a Set of Selected Results  3.2 Reducing the Selection Set to a Specified Item  3.3 Convert a Selected jQuery Object into a Raw DOM Object  3.4 Getting the Index of an Item in a Selection  3.5 Making a Unique Array of Values from an Existing Array  3.6 Performing an Action on a Subset of the Selected Set  3.7 Configuring jQuery Not to Conflict with Other Libraries  3.8 Adding Functionality with Plugins  3.9 Determining the Exact Query That Was Used4. jQue Utilities  4.1 Detecting Features with jQuery.support  4.2 Iterating Over Arrays and Objects with jQuery.each  4.3 Filtering Arrays with jQuery.grep  4.4 Iterating and Modifying Array Entries with jQuery.map  4.5 Combining Two Arrays with jQuery.merge  4.6 Filtering Out Duplicate Array Entries with jQuery.unique  4.7 Testing Callback Functions with jQuery.isFunction  4.8 Removing Whitespace from Strings or Form Values with jQuery.trim  4.9 Attaching Objects and Data to DOM with jQuery.data  4.10 Extending Objects with jQuery.extend5. Faster, Simpler, More Fun  5.1 That's Not jQuery, It's JavaScript!  5.2 What's Wrong with $(this)?  5.3 Removing Redundant Repetition  5.4 Formatting Your jQuery Chains  5.5 Borrowing Code from Other Libraries  5.6 Writing a Custom Iterator  5.7 Toggling an Attribute  5.8 Finding the Bottlenecks  5.9 Caching Your jQuery Objects  5.10 Writing Faster Selectors  5.11 Loading Tables Faster  5.12 Coding Bare-Metal Loops  5.13 Reducing Name Lookups  5.14 Updating the DOM Faster with .innerHTML  5.15 Debugging? Break Those Chains  5.16 Is It ajQuery Bug?  5.17 Tracing into jQuery  5.18 Making Fewer Server Requests  5.19 Writing Unobtrusive JavaScript  5.20 Using jQuery for Progressive Enhancement  5.21 Making Your Pages Accessible6. Dimensions7. Effects8. Events9. Advanced Events10. HTML Form Enhancements from Scratch11. HTML Form Enhancements with Plugins12. jQuery Plugins13. Interface Components from Scratch14. User Interfaces with jQuery UI15. jQuer Ui Theming16. JQuery Ajax Data Formats HTML XML JSON JSONP17. Using jQuery in Large Projects18. Unit TestingIndex

章节摘录

插图:

媒体关注与评论

“我喜欢看到一个此前熟知的API,转而通过另外一种又新奇又有趣的方式得以运用。我希望此书对你有用,教会你以新奇而有趣的方式来使用jQuery。”  ——John Resigj Query库创建者

图书封面

图书标签Tags

评论、评分、阅读与下载


    jQuery参考手册 PDF格式下载


用户评论 (总计4条)

 
 

  •   昨天刚拿到,不过很HIGH,因为书市英文版的,希望不要买中文翻译的
  •   卓越亚马逊本身很好,也有很好的商品,但我相信对济南客户来讲:"济南双建"会毁了卓越的声誉
  •   对jquery的了解更深入了,像filter(),live()有一次不会写modal window, 看了书中的例子, 需要一个overlay层, 便明白了.还有local storage的插件:jStorage, 以及模板引擎, 都很好
  •   大体翻看了一下,很好的参考书
 

250万本中文图书简介、评论、评分,PDF格式免费下载。 第一图书网 手机版

京ICP备13047387号-7