《JavaScript權威指南(第5版)》英文影印版第一刷勘誤

來源:互聯網
上載者:User

《JavaScript權威指南(第5版)》英文影印版第一刷勘誤:

  1. P137 第3行"rather that as a method"中的"that"改為"than";
  2. P143 第1句"The facts that JavaScript..."中的"facts"改為"fact";
  3. P170 9.5.1節中"If you have only one level of subclass, you can simplify the syntax..."加:
    Note however that this trick only works with shallow inheritance
         hierarchies.  If B is a subclass of A and C is a subclass of B, and
         both B and C use this superclass trick, then when you create an
         instance of C, this.superclass will refer to B(), and the B()
         constructor will recurse infinitely.  For anything other than simple
         subclasses, use the construtor chaining technique shown in Example
         9-3.
  4. P171 9.5.2節結尾加:
    Again, note that this superclass property can only be used once
         within an inheritance hierarchy.  If a class and a subclass both use
         this trick, it will cause infinite recursion.
  5. P276 Example 14.2中"if(window.screenLeft){ // IE&Others"改為"if(window.screenLeft===undefined){//IE&Others";
  6. P283 14.4.5節中第4段"then the focus()"的"then"改為"than";
  7. P355 Table 16.2中"opacity Specifies how opaque (or translucent) and element is."的"and"改為"an";
  8. P411 17.3.2節前2句改為:
    " Although the IE event model provides event details in an Event
         object, IE only passes an event object to handlers registered with
         the non-standard <literal>attachEvent()</literal> method (described
         below). Other event handlers are invoked with no arguments.  Instead
         of passing the Event object as an argument to the handler, IE makes
         it available as the <literal>event</literal> property of the global
         Window object."
  9. P412 17.3.3節第2段第2句後插入:
    "An event handler registered with <literal>attachEvent()</literal>
         will be invoked with a copy of the global
         <literal>window.event</literal> event object."
  10. P478 腳註中的"repuration"改為"repuation";
  11. P479 20.1.1節之前加:
    "The examples in this section and the rest of the chapter are all
       part of one larger module. They define utility functions in a
       namespace (see Chapter 10) named <literal>HTTP</literal>. None of
       the examples include the code to actually create this namespace,
       however. The example download bundle includes a file named http.js
       that includes this namespace-creation code, and you can simply add
       the single line <literal>var HTTP = {};</literal> to the examples
       shown here."
  12. P503 21.1.1節之前加:
    "    These utility functions are intended to be part of one large module,
         and are all placed in a namespace (see Chapter 10) named XML. The
         examples shown here do not include code to actually create this
         namespace, however.  The example download bundle includes a file
         named xml.js that includes this namespace-creation code, and you
         can simply add the single line <literal>var XML = {};</literal> to
         the examples shown here."
  13. P609 deleteCount中"This argument is optional;..."這句改為:"Specify 0 to insert elements without deleting any."。

參考:原書勘誤

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.