Hibop Yuan

Results 81 comments of Hibop Yuan

大神您好,构造函数的call调用比较复杂 能请教下吗? ```js function add(c, d){ this.d=d; // set调用对象o return this.a + this.b + c + d; // get调用对象o } var o = {a:1, b:3}; add.call(o, 5, 7); console.log(o); ```

#### 前端工程与性能优化 [https://github.com/fouber/blog/issues/3](https://github.com/fouber/blog/issues/3)

#### 世界顶级Web性能专家教你优化出高性能网站(上) [https://mp.weixin.qq.com/s?__biz=MzAwNzA0NTMzMQ==&mid=403253241&idx=1&sn=3c46a93aac93bb2912ec77d015c9e31e&scene=1&srcid=0408x561sdbObtJoxwyhHwaA&pass_ticket=LI472%2BtqXtAMqvWsYFOWzpOlmvVOJjJgWjYMq%2F0SRd0c5uy8DuOzR%2BstUbC86i8j#rd](https://mp.weixin.qq.com/s?__biz=MzAwNzA0NTMzMQ==&mid=403253241&idx=1&sn=3c46a93aac93bb2912ec77d015c9e31e&scene=1&srcid=0408x561sdbObtJoxwyhHwaA&pass_ticket=LI472%2BtqXtAMqvWsYFOWzpOlmvVOJjJgWjYMq%2F0SRd0c5uy8DuOzR%2BstUbC86i8j#rd)

#### 有货移动Web端性能优化探索实践 [http://www.infoq.com/cn/articles/yohobuy-performance-optimization-practice](http://www.infoq.com/cn/articles/yohobuy-performance-optimization-practice)

#### 前端白屏问题和内容闪烁问题原因以及解决方案: - [https://www.jianshu.com/p/47edb3759489](https://www.jianshu.com/p/47edb3759489); - [http://www.cnblogs.com/hustskyking/p/white-screen-in-chrome.html](http://www.cnblogs.com/hustskyking/p/white-screen-in-chrome.html)

#### 浏览器:加载、解析、渲染详解: [https://www.jianshu.com/p/e141d1543143](https://www.jianshu.com/p/e141d1543143)

#### Web性能优化——预加载、预渲染:prefetch, prerender [http://harttle.land/2015/10/06/html-cache.html](http://harttle.land/2015/10/06/html-cache.html)

- [x] **async function**: [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/async_function](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/async_function) - [ ] **AsyncFunction**: [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction) - [ ] **async function expression**: [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/async%E5%85%81%E8%AE%B8%E5%A3%B0%E6%98%8E%E4%B8%80%E4%B8%AA%E5%87%BD%E6%95%B0%E4%B8%BA%E4%B8%80%E4%B8%AA%E5%8C%85%E5%90%AB%E5%BC%82%E6%AD%A5%E6%93%8D%E4%BD%9C%E7%9A%84%E5%87%BD%E6%95%B0](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/async%E5%85%81%E8%AE%B8%E5%A3%B0%E6%98%8E%E4%B8%80%E4%B8%AA%E5%87%BD%E6%95%B0%E4%B8%BA%E4%B8%80%E4%B8%AA%E5%8C%85%E5%90%AB%E5%BC%82%E6%AD%A5%E6%93%8D%E4%BD%9C%E7%9A%84%E5%87%BD%E6%95%B0)

## 常见问题汇总 1. 异步顺序 ```js const promise = new Promise((resolve, reject) => { console.log(1); resolve(); console.log(2); }); promise.then(() => { console.log(3); }); console.log(4); ``` result: 1,2,4,3 2. Promise状态一旦改变,无法在发生变更 ```js const...

react-route 4.0: [https://www.jianshu.com/p/e3adc9b5f75c](https://www.jianshu.com/p/e3adc9b5f75c) [https://zhuanlan.zhihu.com/p/27433116](https://zhuanlan.zhihu.com/p/27433116)