Firebug console detailed

Firebug console detailed Original author: Ruan Yifeng Date: March 26, 2011 Firebug is a powerful tool for web development, which can greatly improve work efficiency. However, it is not easy to get started. I once translated a “Firebug Getting Started Guide” and introduced some basic usage. Today, continue to introduce its advanced usage. =================================== Firebug… Continue reading Firebug console detailed

Code to prevent web pages from being embedded in frames (continued)

Code to prevent web pages from being embedded in frames (continued) Original author: Ruan Yifeng Date: August 15, 2010 Two years ago, I wrote a piece of code to prevent web pages from being embedded in a frame . <script type=”text/javascript”> if (window!=top) // Determine whether the current window object is a top object top.location.href… Continue reading Code to prevent web pages from being embedded in frames (continued)

Javascript Object-Oriented Programming (3): Inheritance of Non-Constructor

Javascript Object-Oriented Programming (3): Inheritance of Non-Constructor Original author: Ruan Yifeng Date: May 24, 2010 The first part of this series introduces “encapsulation”, and the second part introduces the use of constructors to implement “inheritance”. Today is the last part, introducing “inheritance” without using constructor. 1. What is “non-constructor” inheritance? For example, there is now… Continue reading Javascript Object-Oriented Programming (3): Inheritance of Non-Constructor

Javascript object-oriented programming (two): inheritance of constructor

Javascript object-oriented programming (two): inheritance of constructor Original author: Ruan Yifeng Date: May 23, 2010 The first part of this series mainly introduced how to “encapsulate” data and methods, and how to generate examples from prototype objects. What I want to introduce today is the five methods of “inheritance” between objects. For example, there is… Continue reading Javascript object-oriented programming (two): inheritance of constructor