Catherine Zhang

Results 2 comments of Catherine Zhang

箭头函数一节里用来说明this指向的示例貌似不能反应箭头函数本身的特性啊: ``` function Person(name){ this.name = name; this.say = () => { var name = "xb"; return this.name; } } var person = new Person("axuebin"); console.log(person.say()); // axuebin ``` 假如此处,我把this.say改为普通函数:...

> ```sass > div.parent { > font-size: 0; > text-align: center; > &::before { > content: ""; > display: inline-block; > width: 0; > height: 100%; > vertical-align: middle; >...