How to make it jQuery-free?

How to make it jQuery-free? Original author: Ruan Yifeng Date: May 11, 2013 jQuery is the most popular JavaScript tool library. According to statistics , currently 57.3% of the world’s websites use it. In other words, 6 out of 10 websites use jQuery. If you only look at sites that use the tool library, this… Continue reading How to make it jQuery-free?

Detailed JavaScript Source Map

Detailed JavaScript Source Map Original author: Ruan Yifeng Date: January 23, 2013 Last week, jQuery 1.9 was released. This is the last new version before version 2.0. There are many new features, one of which is to support Source Map. Visit http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js , open the compressed version, scroll to the bottom, you can see the… Continue reading Detailed JavaScript Source Map

Javascript strict mode explained

Javascript strict mode explained Original author: Ruan Yifeng Date: January 14, 2013 I. Overview In addition to the normal operating mode, ECMAscript 5 adds a second operating mode: “strict mode” . As the name suggests, this mode makes Javascript run under stricter conditions. The main purposes of establishing “strict mode” are as follows: -Eliminate some… Continue reading Javascript strict mode explained

4 methods of Javascript asynchronous programming

4 methods of Javascript asynchronous programming Original author: Ruan Yifeng Date: December 21, 2012 As you may know, the execution environment of Javascript language is “single thread”. The so-called “single thread” means that only one task can be completed at a time. If there are multiple tasks, they must be queued, the first task is… Continue reading 4 methods of Javascript asynchronous programming

Javascript modular programming (three): the usage of require.js

Javascript modular programming (three): the usage of require.js Original author: Ruan Yifeng Date: November 7, 2012 The first and second parts of this series introduced the prototype and theoretical concepts of Javascript modules. Today, I will introduce how to use them in actual combat. I use a very popular library require.js . 1. Why use… Continue reading Javascript modular programming (three): the usage of require.js