Detailed explanation of JavaScript inheritance (III)
In Chapter 1, we implement classes and inheritance in the world of JavaScript using constructors and prototypes, but there are many problems. In this chapter, we will analyze these problems one by one and give solutions.
2009-07-07
Classes and closures in Javascript
First of all, let’s declare that at least there are no classes in Javascript so far. The so-called “class” is not a real class. It just manifests itself like classes in other object-oriented languages. Its essence is a function + prototype object.
2010-01-01
Mock code for javascript classes and namespaces
Just think I'm repeating the wheel and sort out the document for people in need, including me :)
2010-10-10
The simplest javascript object instance code
Very simple js object-oriented instance code mainly uses this. For js object-oriented learning materials, you can check my previous articles.
2009-12-12
Object-oriented Javascript 2 (Introduction to interface implementation)
Interfaces are one of the most useful features in the object-oriented Javascript toolbox. We all know that GOF says in design mode: interface-oriented programming, not implementation-oriented programming
2012-01-01
About the definition of js class
In the past two days, I helped my classmates build a flash sale network, intending to completely separate the front desk and the back desk, and use only Ajax communication. This will inevitably lead to a lot of use of JavaScript, so I found that js is indeed difficult to learn and use.
2011-06-06
The core code required for writing your own js library
As we all know, using jQuery's extend method can easily implement inheritance and object copying. We can take it and use it ourselves.
2012-07-07
Writing maintainable object-oriented JavaScript code [Translation]
Write maintainable object-oriented JavaScript code [Translation]. Friends who learn js object-oriented writing can refer to it.
2011-02-02
JavaScript interface implementation code (Interfaces In JavaScript)
Interfaces are an important feature in object-oriented programming. Unfortunately, JavaScript does not provide support for interfaces! How to implement the interface?
2010-06-06
JavaScript Design Pattern Learning Singleton
JavaScript Design Pattern Learning Singleton
2009-07-07