闭包
变量的作用域
more >>变量的作用域,就是指变量的有效范围。我们最常谈到的就是函数中声明的变量作用域。
当在函数中声明一个变量的时候,如果该变量前面没有带上关键字 var 、let 、const、其中一个,这个变量就会变成全局变量。 反之只能在这个函数中才能访问到这个变量。
web在路上
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true