博客
关于我
Learning jQuery, 4th Edition 勘误表
阅读量:806 次
发布时间:2023-01-30

本文共 1891 字,大约阅读时间需要 6 分钟。

重新优化后的内容如下:

来源于:http://book.learningjquery.com/3145/errata/

 

Chapter 1

page 14

The CSS snippet is correct, but it differs from the CSS in the sample download at packtpub.com. For the complete updated version, please visit the provided link.

Chapter 2

page 29

The first paragraph originally stated:

Notice that the first <ul> has an ID of selecting plays

It should now read:

Notice that the first <ul> has an ID of selected plays

Listing 2.2

Line 3 of Listing 2.2 was incorrectly:

$('#selected-plays li:not(.horizontal)').addClass('sub-level');li:not(.horizontal)').addClass('sub-level');

It should now be:

$('#selected-plays li:not(.horizontal)').addClass('sub-level');
Listing 2.5

Lines 5–7 of Listing 2.5 were:

.addClass('henrylink');  });}),

They should now omit the superfluous line:

.addClass('henrylink');}
page 46

The variable declaration incorrectly omitted a space. The corrected code should be:

var myTag

Chapter 3

Currently no errata recorded

Chapter 4

Currently no errata recorded

Chapter 5

Currently no errata recorded

Chapter 6

Currently no errata recorded

Chapter 7

Currently no errata recorded

Chapter 8

Currently no errata recorded

Chapter 9

Listing 9.8

The previous implementation incorrectly used the pseudo-selectors’ functionality. The corrected approach utilizing Sizzle’s functionality should be:

(function($) {  $.expr.setFilters.group = function(elements, argument, not) {    var resultElements = [];    for (var i = 0; i < elements.length; i++) {      var test = i % (argument * 2) < argument;      resultElements.push(elements[i]);    }    return resultElements;  };})(jQuery);

Additional information on the updated implementation can be found at:

https://github.com/jquery/sizzle/wiki/Sizzle-Documentation#wiki-sizzleselectorssetfilterslowercase_name--function-elements-argument-not--

Chapter 10

Currently no errata recorded

Chapter 11

Currently no errata recorded

转载地址:http://itgyk.baihongyu.com/

你可能感兴趣的文章
PHP获取当前文件的绝对路径
查看>>
PHP获取当前时间、时间戳的各种格式写法汇总
查看>>
PHP获取当前页面的完整URL
查看>>
php获取数据库中数据生成json,中文乱码问题的解决方案
查看>>
php获取文件夹中文件的两种方法
查看>>
PHP获取日期的一些方法总结
查看>>
R2学习记录
查看>>
PHP获取本周的每一天的时间
查看>>
php获取用户真实IP和防刷机制
查看>>
php获取网页内容的三种方法
查看>>
R-CNN算法优化策略
查看>>
PHP规范PSR0和PSR4的理解
查看>>
php解析ipa包,获取logo
查看>>
R&Rstudio安装各种包
查看>>
php设置cookie,在js中如何获取
查看>>
php设置socket超时时间
查看>>
php设计模式 萨莱 pdf,PHP设计模式 建造者模式
查看>>
PHP设计模式之----观察者模式
查看>>
php设计模式之装饰器模式
查看>>
R&Python Data Science系列:数据处理(5)--字符串函数基于R(一)
查看>>