目录
- for in 和for of的区别 
- 手写promise.all 
- Promise实现链式调用实现方法 
- 节流防抖 
- 前端安全 
- es6 class类 
- 前端换肤换主题 
22.发布订阅模式
- 你真的懂git rebase吗 
1. for...of,for...in,forEach和map的区别
2. async、await、promise三者的关系
3. 手写promise.all
4. Promise实现链式调用实现方法
5. 节流防抖
防抖
var count = $("#count").html()
        var fun1 = function (){
            $("#count").html(count++)
        }
        function throttle(fn,delay) {
          let valid = true
          return function(){
            if(!valid){
              return false
            }
            valid = false
            setTimeout(()=>{
              valid = true;
              fn()
            },delay)
          }
        }
        $(document).mousemove(throttle(fun1,1000))
节流
var count = $("#count").html()
        var fun1 = function (){
            $("#count").html(count++)
        }
        function throttle(fn,delay) {
          let valid = true
          return function(){
            if(!valid){
              return false
            }
            valid = false
            setTimeout(()=>{
              valid = true;
              fn()
            },delay)
          }
        }
        $(document).mousemove(throttle(fun1,1000))
https://www.jianshu.com/p/c8b86b09daf0
https://segmentfault.com/a/1190000018428170
6. 不想让对象的属性被修
8.px、em、rem区别介绍
9. 内存泄漏
11. es6 class类
https://www.jianshu.com/p/86267fab4878
https://www.jianshu.com/p/0aa8c9c52f38
https://www.jianshu.com/p/5585412b4575










