Littlombie's Nirvana

Novelty is the great parent of pleasure.


  • Home

  • Archives53

  • Tags31

  • About

  • Nirvana

ES6学习(2)- 解构赋值

Posted on 2019-08-20 | In ES6

数组类的解构赋值

1
2
3
4
5
{
let a,b,rest;
[a,b]=[1,2];//等价于 let a = 1,b = 2;
console.log(a,b);
}

上边的[a,b]=[1,2];等价于 let a = 1,b = 2 ;

1
2
3
4
5
{
let a,b,rest;
[a,b,...rest] = [1,2,3,4,5,6];
console.log(a,b,rest);//1,2,[3,4,5,6]
}
Read more »

ES6学习(1)-let,const

Posted on 2019-08-20 | Edited on 2019-08-21 | In ES6

let

作用域的概念

1
2
3
4
5
6
7
8
9
10
function test(){
//var a = 1;
for(let i =1;i<3;i++){

console.log(i);
}

console.log(i);
}
test();//1,2,i is not defined

块作用域 :如果一个方法(函数)用大括号包裹起来 ,那么这就是块级作用域;
let只在块级作用域内有效;

Read more »

vue深度学习(6)- render 函数

Posted on 2018-10-25 | In vue

render

  • 研究方向

    • render机制
  • 研究方法

    • 条件渲染、列表渲染、update、模板、服务器渲染、渲染性能,如何编译,ast是什么

Read more »

vue深度学习(2)- 生命周期

Posted on 2018-10-20 | Edited on 2018-10-25 | In vue

Vue的生命周期方法

  • 研究方向

    • hook机制
  • 研究方法

    • 各个hook在哪个阶段触发,为啥会在这个阶段触发?触发这个钩子可以改变什么或者得到什么?

Read more »
1…456…14
Littlombie

Littlombie

Said less to do more!

53 posts
11 categories
31 tags
RSS
GitHub Weibo Zhihu webSite
Creative Commons
© 2020 Littlombie
Powered by Hexo v3.9.0
|
Theme – NexT.Mist v6.4.2