表示集合的数据结构:
Array Object Map Set
Iterator 遍历器 是为各种数据结构,提供一个统一的、简便的访问接口;
使数据结构的成员能够按照某种次序排列
ES6 的新的遍历命令 for…of
Iterator 本质是一个指针对象
调用 next 方法
原生具备:iterrator 的接口的数据结构如下:
Array
Map
Set
String
TypedArray
函数的 arguments 对象
NodeList 对象
Do things better
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
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