JavaScript: The Definitive Guide(4th edition)

        一直觉得没有把JavaScript学的透彻,所以最近阅读 David Flanagan的大名鼎鼎的 JavaScript: The Definitive Guide(4th edition) 这本书,目前看到第2部分。这本书以Core JavaScript和Client-Side JavaScript两个方面组织,加以W3C DOM Reference来补充,内容全面系统深刻,层次分明,文法优美,不愧为JavaScript学习方面的权威!
      “JavaScript is a lightweight, interpreted programming language with object-oriented capabilities.”
      “Although JavaScript supports a data type we call an object, it does not have a formal notion of a class. This makes it quite different from classic object-oriented languages such as C++ and Java. The common conception about object-oriented programming languages is that they are strongly typed and support class-based inheritance. By these criteria, it is easy to dismiss JavaScript as not being a true object-oriented language. On the other hand, we've seen that JavaScript makes heavy use of objects and that it has its own type of prototype-based inheritance. JavaScript is a true object-oriented language. It draws inspiration from a number of other (relatively obscure) object-oriented languages that use prototype-based inheritance instead of class-based inheritance. 
        Although JavaScript is not a class-based object-oriented language, it does a good job of simulating the features of class-based languages such as Java and C++. I've been using the term class informally throughout this chapter. This section more formally explores the parallels between JavaScript and true class-based inheritance languages such as Java and C++.
     “A document object model (DOM) is an application programming interface (API) for representing a document (such as an HTML document) and accessing and manipulating the various elements (such as HTML tags and strings of text) that make up that document. ”

你可能感兴趣的:(JavaScript: The Definitive Guide(4th edition))