nuysoft / jquery-errata-support Goto Github PK
View Code? Open in Web Editor NEW《jQuery 技术内幕》- 勘误和支持
License: Other
《jQuery 技术内幕》- 勘误和支持
License: Other
表格里的特殊符号 > 的字符代码和数字代码印反了
P87关于checkSet的说明,两次出现从右向左的查找方式,第二次应该是从左向右的查找方式
通常我们会比较jQuery.inArray()的返回值是否大于0,来判断某个指定的元素是否是数组中的元素,就像下面这样:
if ( jQuery.inArray ( elem, array ) > 0 ){
}
我觉得应该是>-1 或者 != -1。
我参考了下官网API文档, https://api.jquery.com/jQuery.inArray/
第1219行:在便捷方法always()中,采用链式语法依次调用方法done()、fail()重复添加回调函数,并返回this以继续支持链式语法。调用方法done()、fail()时,关键字this始终指向当前异步队列,因此实际上不借用方法apply()也可以用链式语法。
这是作者在第179页底部对deffered.always()
的一个解释,我觉得那里必须要用apply()
,而且那里跟this关系不大。
主要是因为deffered.done()
也就是donelist.add()
的参数是多个回调函数,而deffered.always()
中要传递给donelist.done()
的参数是它(即deffered.always()
)的arguments
,它是一个类数组,也就是说donelist.add()
接受的是一个类数组,而非多个参数。所以必须要用apply()
才能使参数正确传递。
原文:“如果构造函数有返回值,运算符new所创建的对象会被抛弃”
严谨的说应该是:“如果构造函数有(非基本类型(Undefined、Null、Boolean、Number、String)的)返回值,运算符new所创建的对象会被抛弃”
在书中第十五页,作者给出了Comment值为9,但翻阅资料后,发现Comment的nodeTyoe值为8。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.