<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>代码人 - ECMAScript 6</title>
    <link>https://www.daimaren.com/forum.php?mod=forumdisplay&amp;fid=27</link>
    <description>Latest 20 threads of ECMAScript 6</description>
    <copyright>Copyright(C) 代码人</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 09 Sep 2026 12:29:44 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.daimaren.com/static/image/common/logo_88_31.gif</url>
      <title>代码人</title>
      <link>https://www.daimaren.com/</link>
    </image>
    <item>
      <title>ES6-模块</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=338</link>
      <description><![CDATA[ES6-模块：

1.导出模块
2.导入模块
3.使用模块]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sat, 17 Jan 2026 16:18:04 +0000</pubDate>
    </item>
    <item>
      <title>ES6-类</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=337</link>
      <description><![CDATA[1.创建类和实例

class 类名{ //类名后不加（）
... //类体
}

创建类后要实例化对象。使用new：
var 对象名 = new 类名()


2.类的构造函数

//创建类
class Person{
   //定义构造函数
  constructor(name,sex,age){
  this.name = name;
  this.sex= sex;
  this.age ...]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Mon, 12 Jan 2026 19:03:38 +0000</pubDate>
    </item>
    <item>
      <title>ES6-箭头函数</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=335</link>
      <description><![CDATA[箭头函数的进本组成包括：函数参数，箭头，函数体。
1.语法
①.一个参数

②.多个参数
③.空参数，需要一个空小括号()
④.函数体多个语句，需要用函数体包含起来

⑤.箭头返回是一个对象



 ...]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 04 Jan 2026 15:37:23 +0000</pubDate>
    </item>
    <item>
      <title>ES6-对象</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=334</link>
      <description><![CDATA[1.对象初始化简写：
2.对象方法的简写
3.动态属性名，在[]中使用变量或者表达式使用动态属性名。]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 04 Jan 2026 14:59:34 +0000</pubDate>
    </item>
    <item>
      <title>ES6-展开运算符</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=333</link>
      <description><![CDATA[展开运算符：可以将一个运算符展开，也可以用于展开对象中的所有可遍历的属性。展开运算符语法上也是使用...三个点。



展开运算符也可以合并数组：



展开运算符用于结构赋值：


备注：结构赋值赋值时，展开运算符只能放在最后。

展开运算符用于对象遍历属性：


 ...]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 04 Jan 2026 14:52:26 +0000</pubDate>
    </item>
    <item>
      <title>ES-数组</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=332</link>
      <description><![CDATA[ES6的数组结构是将一个变量名组成一个数组。]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 04 Jan 2026 13:50:47 +0000</pubDate>
    </item>
    <item>
      <title>ES6-赋值</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=331</link>
      <description><![CDATA[对象赋值：
let person = {
name:\&quot;Tom\&quot;,
sex:\&quot;男\&quot;,
age:\&quot;21\&quot;
}
let {name,sex,age} = person;


console.log(name); //Tom
console.log(sex); //男
console.log(age); //21

或者先声明变量，之后使用结构语法为变量赋值
let name,sex,age；
({name,sex,age} = person)
 ...]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 28 Dec 2025 13:14:02 +0000</pubDate>
    </item>
    <item>
      <title>ES6-参数</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=330</link>
      <description><![CDATA[默认参数：

1.ES5中
参数只能在函数体中实现



2.ES6中


res参数：
在ES6中引入了rest参数，在函数的形参前添加“...”，就表示这是一个rest参数。
普通参数和rest参数可以同时存在，rest参数必须放到最后。



 ...]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Sun, 28 Dec 2025 12:33:16 +0000</pubDate>
    </item>
    <item>
      <title>ES6-模板字面量</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=329</link>
      <description><![CDATA[ES6中使用模板字面量表示多行字符串。



字符串占位符]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Fri, 26 Dec 2025 16:04:30 +0000</pubDate>
    </item>
    <item>
      <title>ES6-const声明</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=328</link>
      <description><![CDATA[在ES6中const声明变量的关键字是一个只读的常量。

const定义常量后，常量的值就不能改变。切声明const时必须进行初始化赋值。
const声明的常量，只在所在的块级作用内有效。]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Fri, 26 Dec 2025 15:50:41 +0000</pubDate>
    </item>
    <item>
      <title>ES6-let声明</title>
      <link>https://www.daimaren.com/forum.php?mod=viewthread&amp;tid=327</link>
      <description><![CDATA[es6新增let关键字声明变量。let只在所在代码块内有效。

let变量特别适合for循环中：
let不允许作用域内重复声明。]]></description>
      <category>ECMAScript 6</category>
      <author>dmr</author>
      <pubDate>Fri, 26 Dec 2025 15:43:50 +0000</pubDate>
    </item>
  </channel>
</rss>