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

你可能感兴趣的文章
opencv Hog学习总结
查看>>
opencv Mat push_back
查看>>
opencv putText中文乱码
查看>>
OpenCV Python围绕特定点将图像旋转X度
查看>>
opencv resize
查看>>
Opencv Sift和Surf特征实现图像无缝拼接生成全景图像
查看>>
opencv SVM分类Demo
查看>>
OpenCV VideoCapture.get()参数详解
查看>>
opencv videocapture读取视频cap.isOpened 输出总是false
查看>>
opencv waitKey() 函数理解及应用
查看>>
OpenCV 中的图像转换
查看>>
OpenCV 人脸识别 C++实例代码
查看>>
OpenCV 在 Linux 上的 python 与 anaconda 无法正常工作.收到未实现 cv2.imshow() 的错误
查看>>
Opencv 完美配置攻略 2014 (Win8.1 + Opencv 2.4.8 + VS 2013)上
查看>>
opencv 模板匹配, 已解决模板过大程序不工作的bug
查看>>
OpenCV 错误:(-215)size.width>0 &&函数imshow中的size.height>0
查看>>
opencv&Python——多种边缘检测
查看>>
opencv&python——高通滤波器和低通滤波器
查看>>
OpenCV+Python识别车牌和字符分割的实现
查看>>
OpenCV-Python接口、cv和cv2的性能比较
查看>>