博客
关于我
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 视图 事务 存储过程 SQL注入
查看>>
MySQL 存储过程参数:in、out、inout
查看>>
mysql 存储过程每隔一段时间执行一次
查看>>
mysql 存在update不存在insert
查看>>
Mysql 学习总结(86)—— Mysql 的 JSON 数据类型正确使用姿势
查看>>
Mysql 学习总结(87)—— Mysql 执行计划(Explain)再总结
查看>>
Mysql 学习总结(88)—— Mysql 官方为什么不推荐用雪花 id 和 uuid 做 MySQL 主键
查看>>
Mysql 学习总结(89)—— Mysql 库表容量统计
查看>>
mysql 实现主从复制/主从同步
查看>>
mysql 审核_审核MySQL数据库上的登录
查看>>
mysql 导入 sql 文件时 ERROR 1046 (3D000) no database selected 错误的解决
查看>>
mysql 导入导出大文件
查看>>
MySQL 导出数据
查看>>
mysql 将null转代为0
查看>>
mysql 常用
查看>>
MySQL 常用列类型
查看>>
mysql 常用命令
查看>>