博客
关于我
Learning jQuery, 4th Edition 勘误表
阅读量:804 次
发布时间: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/

你可能感兴趣的文章
MYSQL一直显示正在启动
查看>>
MySQL一站到底!华为首发MySQL进阶宝典,基础+优化+源码+架构+实战五飞
查看>>
MySQL万字总结!超详细!
查看>>
Mysql下载以及安装(新手入门,超详细)
查看>>
MySQL不会性能调优?看看这份清华架构师编写的MySQL性能优化手册吧
查看>>
MySQL不同字符集及排序规则详解:业务场景下的最佳选
查看>>
Mysql不同官方版本对比
查看>>
MySQL与Informix数据库中的同义表创建:深入解析与比较
查看>>
mysql与mem_细说 MySQL 之 MEM_ROOT
查看>>
MySQL与Oracle的数据迁移注意事项,另附转换工具链接
查看>>
mysql丢失更新问题
查看>>
MySQL两千万数据优化&迁移
查看>>
MySql中 delimiter 详解
查看>>
MYSQL中 find_in_set() 函数用法详解
查看>>
MySQL中auto_increment有什么作用?(IT枫斗者)
查看>>
MySQL中B+Tree索引原理
查看>>
mysql中cast() 和convert()的用法讲解
查看>>
mysql中datetime与timestamp类型有什么区别
查看>>
MySQL中DQL语言的执行顺序
查看>>
mysql中floor函数的作用是什么?
查看>>