JS中的var let const
var属于function scope 而 let和const属于block scope。
let和const属于ES6新特性。
const定义的变量类似Java中的final关键字,其值不可修改。
1 | function(){ |
var属于function scope 而 let和const属于block scope。
let和const属于ES6新特性。
const定义的变量类似Java中的final关键字,其值不可修改。
1 | function(){ |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment