Three methods of Javascript definition class (class) Original author: Ruan Yifeng Date: July 9, 2012 When Javascript was born nearly 20 years ago, it was just a simple web scripting language. If you forget to fill in the username, it will pop up a warning. Nowadays, it has become almost omnipotent, from the front end… Continue reading Three methods of Javascript definition class (class)
Month: June 2020
Javascript programming style
Javascript programming style Original author: Ruan Yifeng Date: April 27, 2012 Douglas Crockford is a Javascript authority, and the Json format is his invention. In November last year, he had a speech ( Youtube ) about what is a good Javascript programming style. I highly recommend this lecture. It not only helps to learn Javascript,… Continue reading Javascript programming style
6 online debugging environments for web development
6 online debugging environments for web development Original author: Ruan Yifeng Date: February 13, 2012 Today’s webpage code generally consists of three parts: * HTML, semantic layer, provides web content. * CSS, presentation layer, specifies the appearance of web pages. * Javascript, the action layer, defines the interaction between the user and the web page.… Continue reading 6 online debugging environments for web development
Javascript file loading: LABjs and RequireJS
Javascript file loading: LABjs and RequireJS Original author: Ruan Yifeng Date: October 3, 2011 Traditionally, the <script> tag is used to load Javascript files. It looks like this: <script type=”text/javascript” src=”example.js”></script> The <script> tag is very convenient, as long as you add a web page, the browser will read and run it. However, it has… Continue reading Javascript file loading: LABjs and RequireJS