Secrets of the JavaScript Ninja - John Resig, Bear Bibeault

Secrets of the JavaScript Ninja

John Resig, Bear Bibeault

出版时间

2013-01-17

ISBN

9781933988696

评分

★★★★★
AI导读
核心看点
  • 深入解析函数、闭包及原型链,揭示JS核心机制
  • 详解跨浏览器兼容性与调试技巧,提升工程能力
  • 剖析jQuery设计思想,理解库背后的实现原理
适合谁读
  • 希望突破中级瓶颈,深入理解JS底层机制的开发者
  • 前端新人,寻求系统化学习JS高级特性的入门者
  • jQuery使用者,渴望探究库内部实现与源码逻辑者
读前提醒
  • 中文版翻译质量参差不齐,建议条件允许直接阅读原版
  • 内容较深,需结合Good Parts等书籍配合阅读效果更佳
  • 部分早期版本存在技术过时或错误,请留意版本差异
读者共识
  • 作者John Resig代码风格灵活,展现对JS的极致热爱
  • 函数式编程与闭包章节讲解精彩,是全书精华所在
  • 虽有小瑕疵,但被公认为深入理解JS的必读经典之作

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "all morden browsers but IE"
  • "In order to be a good JavaScript developer you need to maintain the traits that most good programmers have including testing, performance analysis, anddebugging."
  • "• Firebug: The popular developer extension for Firefox http://getfirebug.org/ • IE Developer Tools: Included in Internet Explorer 8. • Opera Dragonfly: Included in Opera 9.5 and newer - also works with Mobile versions of Opera. • Safari Developer Tools: Introduced in Safari 3 and dramatically improv"
  • "• Firefox 2 and 3: Doing a typeof on the HTML <object/> element yields an inaccurate "function" result (instead of "object"), like so: typeof objectElem == "function". • Firefox 2: A little known feature: You can call regular expressions as if they were functions, like so: /test/("a test"). This can"
  • "For example, most JavaScript libraries end up supporting about 12 browser: The previous release, the current release, and the upcoming release of Internet Explorer, Firefox, Safari, and Opera."
  • "To start, it's important to realize what that the function context represents: The object within which the function is being executed."
  • "The two methods are quite similar to each other, as to how they're used, but with a distinction: How they set incoming argument values. Simply, .call() passes in arguments individually whereas .apply() passes in arguments as an array, as shown in Listing 2-20."
  • "A couple important aspect, to take note of, in this example. We're accessing a native object method (Array.prototype.push) and are treating it just like any other function or method - by using .call(). The most interesting part is the use of 'this' as the context. Normally, since a push method is pa"
用户评论
明明写的是Ninja,封面配图却是Samurai。呸,瞧不起毫无考据精神的你们!
太高深,而且是英文版,看不懂。
Javascript, a dialect of Lisp which is not correctly implemented
看了MEAP版本后终于看了正式版,里面大量的更新,总之,值得等待,配合good parts应该就差不多了
meap edition. 赶在正式出版前看完... 看这种前面是代码后面是解释的书的结果就是,把代码看完了,后面的文字都不想看了,要是说明直接用注释写出来多好啊。。。(后面几章涉及兼容性的看得很痛苦,跟每次大号最后想还把残留的东西再挤出来的感觉一样的)
看了三分之一左右。有很多细节和技巧,适合哪天把Javascript作为主力开发工具的时候,再拿来细细啃。相关的书籍有: https://book.douban.com/subject/26382780/ https://book.douban.com/subject/26854244/
没做笔记,看来要重读
大神之作
上学的时候读过一次,当时挺多不懂的,最近又买了一本,真是满满的黑科技感。
JavaScript忍者秘籍
收藏