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

你可能感兴趣的文章
leaflet删除所有图层(leaflet篇.25)
查看>>
leaflet加载接入天地图(leaflet篇.1)
查看>>
leaflet加载接入百度地图(leaflet篇.2)
查看>>
leaflet加载接入腾讯矢量、腾讯影像地图(leaflet篇.4)
查看>>
leaflet动态热力图分析(leaflet篇.16)
查看>>
leaflet动态热力图(大数据版)(leaflet篇.17)
查看>>
leaflet区域聚合点(点击后散开并进行合理定位)(leaflet篇.22)
查看>>
leaflet叠加geojson图层(leaflet篇.38)
查看>>
leaflet叠加geojson图层(挖洞)(leaflet篇.43)
查看>>
leaflet叠加多个面(面的数据结构)(leaflet篇.62)
查看>>
leaflet图标跳动(leaflet篇.45)
查看>>
leaflet图标闪烁(leaflet篇.20)
查看>>
leaflet地图无级别缩放(移动端)(leaflet篇.76)
查看>>
leaflet多边形空间查询(ElasticSearch技术实现)(leaflet篇.52)
查看>>
leaflet实现wms服务面要素可点击(leaflet篇.30)
查看>>
Leaflet快速入门与加载OSM显示地图
查看>>
leaflet接入geoserver发布的热力图服务(leaflet篇.29)
查看>>
leaflet接入土地资源(leaflet篇.55)
查看>>
leaflet接入天地图(经纬度投影256)(leaflet篇.24)
查看>>
leaflet接入百度午夜蓝地图、深色地图(leaflet篇.27)
查看>>