<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[www_web_com的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/www_web_com</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; www_web_com]]></copyright><item><title><![CDATA[ES6语法篇：对数组方法的扩展]]></title><link>https://blog.youkuaiyun.com/www_web_com/article/details/90312859</link><guid>https://blog.youkuaiyun.com/www_web_com/article/details/90312859</guid><author>www_web_com</author><pubDate>Sat, 18 May 2019 11:11:26 +0800</pubDate><description><![CDATA[在ES6中，引入了两个非常强大的方法：扩展运算符以及Array.from.
扩展运算符
扩展运算符是一个特殊的数组方法，写法是[…argment]，argment可以是数组，也可以是字符串，甚至也可以是一个遍历器接口对象，类似Generator函数的返回值。
扩展运算符的作用
合并数组
[...[1,2,3], ...[4,5,6]] //[1,2,3,4,5,6]

将字符串拆分为转为数组
[....]]></description><category></category></item><item><title><![CDATA[ES6语法篇：字符串新增的includes(), startsWith(), endsWith()三种实例化方法比较]]></title><link>https://blog.youkuaiyun.com/www_web_com/article/details/90289834</link><guid>https://blog.youkuaiyun.com/www_web_com/article/details/90289834</guid><author>www_web_com</author><pubDate>Fri, 17 May 2019 11:20:51 +0800</pubDate><description><![CDATA[在es6之前，真正意义上能够判断一个字符是否在一个字符串里面的方法只有indexOf，目前ES6新增了三个新的方法：
includes()方法
该方法返回一个布尔值，true为找到了参数字符串。
let str = "hello world!";
str.includes('he') //true

startsWith()方法
该方法判断一个字符串是否在另一个字符串的头部，返回一个布尔值，tru...]]></description><category></category></item><item><title><![CDATA[ES6语法篇：let和const]]></title><link>https://blog.youkuaiyun.com/www_web_com/article/details/90268977</link><guid>https://blog.youkuaiyun.com/www_web_com/article/details/90268977</guid><author>www_web_com</author><pubDate>Thu, 16 May 2019 18:02:41 +0800</pubDate><description><![CDATA[let和var
很简单的例子，let只有在定义的区域内有效,也就是块级作用域，在区域外访问会报错，如下例子：
for (let i = 0; i &lt; 10; i++) {
  // ...
}

console.log(i);
// ReferenceError: i is not defined

而var定义的是全局变量，在全局作用域都有效
var a = [];
for (var i ...]]></description><category></category></item></channel></rss>