Javascript

(73)

全局对象守护神 - JS 的匿名自调用函数

我们经常会看到类似的代码 ``` ``` 实际上这就是匿名自调用函数。 > Self-invocation (also known as auto-invocation) is when a function exe

javascript 代码风格

> "For the past 33 years, I have looked in the mirror every morning and asked myself: 'If today were the last day of my

javascript

console.log("Hello world!"); ## 定义一个类 格式类似于定义一个函数: ``` var Person = function() { // property this.n