博客
关于我
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/

你可能感兴趣的文章
php查最大值,在PHP数组中查找最大值
查看>>
php标签筛选,关于PHP CodeIgniter框架中通过<a>标签和url做多条件分类筛选
查看>>
php根据年月日计算年龄
查看>>
RabbitMQ - 单机部署(超详细)
查看>>
php检查注册,PHP检查注册的电子邮件地址是一个’school.edu’地址
查看>>
php模拟发送GET和POST请求
查看>>
RabbitMQ - 以 MQ 为例,手写一个 RPC 框架 demo
查看>>
php模板引擎smarty
查看>>
php正则表达式模式
查看>>
php正则表达式的特殊字符含义
查看>>
PHP正则表达式获取武汉市的实时pm2.5数据并邮件发送phpmailer
查看>>
RabbitMQ + JMeter组合,优化你的中间件处理方式!
查看>>
PHP水仙花问题解法之一
查看>>
php没有解析是怎么回事,linux下php文件没有被剖析怎么办?_后端开发
查看>>
php注册页面实现注册后跳转页面
查看>>
PHP消息队列的实现方式与详解,值得一看
查看>>
PHP混合Go协程并发
查看>>
php源码中如何添加滚动公告,给WordPress网站添加滚动公告的方法
查看>>
PHP源码安装后如何新增模块
查看>>
php源码详细安装步骤,linux下php源码安装步骤
查看>>