1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

800 Commits

Author SHA1 Message Date
prettykernel
3136117acc typo fix 2017-02-28 20:27:36 +08:00
ruanyf
4d06e3681d docs(object): add object.assign 2017-02-28 17:45:38 +08:00
ruanyf
6496d019b7 docs(object): add object.assign 2017-02-28 17:42:14 +08:00
ruanyf
b96a3fd1d9 docs(object): add object.assign 2017-02-28 17:39:26 +08:00
ruanyf
feaca88fc0 Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages 2017-02-26 23:15:34 +08:00
ruanyf
938c0cb461 docs(generator): edit yield 2017-02-26 21:46:18 +08:00
KurryLuo
d6cf4631eb Update destructuring.md
我的陋解:析构赋值等号右边如果是数组的话,就不用转换成对象。按照数组的规则赋值就可以了。请指正。
2017-02-26 10:53:59 +08:00
ruanyf
c108637656 docs(let): edit const 2017-02-24 21:53:41 +08:00
ruanyf
f51f862dc2 Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages 2017-02-24 21:38:51 +08:00
ruanyf
9bb12ab3d2 docs(let): edit const 2017-02-24 21:38:18 +08:00
Wang Lei
9f4ca94152 修复类的静态属性中实例代码的错误
class MyClass {
  static myStaticProp = 42;

  constructor() {
    console.log(MyClass.myProp); // 42
  }
}
修改为:
class MyClass {
  static myStaticProp = 42;

  constructor() {
    console.log(MyClass.myStaticProp); // 42
  }
}
2017-02-23 08:46:13 +08:00
ruanyf
002618ac5e docs(promise): fix typo 2017-02-19 21:00:37 +08:00
ruanyf
8ab3b0ac12 docs(object): edit object/for...of 2017-02-17 13:32:26 +08:00
ruanyf
08e0824e21 docs(generator-async): edit co module 2017-02-16 16:52:56 +08:00
ruanyf
2da8eac664 docs(module): edit import() 2017-02-14 07:32:28 +08:00
ruanyf
e5c9ccadca docs(module): edit Module 2017-02-13 11:32:56 +08:00
ruanyf
c4ee209c88 docs(module): edit Module 2017-02-13 00:30:49 +08:00
ruanyf
9ed5c759e9 docs(module): 拆分《Module》一章 2017-02-13 00:25:47 +08:00
ruanyf
002dddabf9 docs(async): edit async 2017-02-12 14:39:14 +08:00
ruanyf
2b9fe071df docs(object): edit spread operator 2017-02-09 13:55:23 +08:00
ruanyf
d042de53e6 docs(let): edit 块级作用域内的函数声明 2017-02-08 19:22:44 +08:00
ruanyf
e8db4536b8 docs(let): edit 块级作用域内的函数声明 2017-02-08 19:19:56 +08:00
ruanyf
f66e7cb391 docs(let): edit let 2017-02-07 11:38:45 +08:00
ruanyf
4635e4598c docs(arrayBuffer): edit sharedArrayBuffer 2017-02-05 18:56:13 +08:00
ruanyf
efc5f2f8b6 docs(set): fix text 2017-02-03 19:51:40 +08:00
ruanyf
3c401eaa3c docs(generator): edit title 2017-02-03 01:47:34 +08:00
ruanyf
6e944000df docs(async): 拆分 generator 函数的异步操作与 async 函数 2017-02-03 01:44:26 +08:00
ruanyf
4bf719ef8f docs(module): add Node 加载 ES6 模块 2017-02-02 08:54:35 +08:00
Ruan YiFeng
4d599e8785 docs(Object): edit Object.values() 2017-01-27 09:51:02 +08:00
Ruan YiFeng
186a84dce7 docs(number): edit 指数运算符 2017-01-26 07:57:35 +08:00
Ruan YiFeng
d0442c38c1 Merge pull request #325 from JiangdandanAbigale/patch-1
语法错误
2017-01-25 09:54:39 +08:00
Ruan YiFeng
dcb12a1be9 docs(Symbol): edit Symbol.unscopables 2017-01-25 09:24:20 +08:00
Dandan Jiang
b2c2f8fd0c 语法错误 2017-01-24 11:16:09 +08:00
Zhao
c7f64377f8 rename function name to readFileThunk
这里使用 `readFileThunk` 更容易理解
2017-01-23 17:47:55 +08:00
ruanyf
3b6848b5a2 Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages 2017-01-22 11:11:04 +08:00
ruanyf
08f1ed744e docs: edit destructuring 2017-01-22 11:10:42 +08:00
sunyuhui
1c6add3cb9 拼写错误 2017-01-21 15:20:48 +08:00
ruanyf
876a7b4bb1 docs: fix function/参数默认值 2017-01-20 20:43:27 +08:00
ruanyf
eb2a62215a docs: fix function/参数默认值有单独作用域 2017-01-20 20:39:18 +08:00
ruanyf
1fa35d5c7b docs(class): 调整”类的私有属性“一节的位置 2017-01-17 16:09:32 +08:00
ruanyf
b08cb1329f docs(module): edit module 2017-01-15 19:57:14 +08:00
ruanyf
e198cd9ec9 Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages 2017-01-14 15:06:14 +08:00
ruanyf
8d0274cd13 docs(class): 私有属性 2017-01-14 15:04:55 +08:00
Ataotao
ef89f58f61 此处参数有误
// Reflect.construct 的写法
const instance = Reflect.construct(Greeting, '张三');
Reflect.construct(target, argumentsList[, newTarget])
An array-like object specifying the arguments with which target should be called.
2017-01-13 15:53:07 +08:00
ruanyf
2be52481a2 docs(generator): edit Generator 2017-01-12 11:11:22 +08:00
Geng Shuang
bfa6c119c1 生成器对象调用 next 方法传参
`next`方法可以带一个参数,该参数就会被当作上一个`yield`语句的返回值
2017-01-11 15:26:17 +08:00
Ruan YiFeng
89a0e8fc75 Merge pull request #312 from goodyboy6/patch-1
Update object.md
2017-01-09 21:15:29 -06:00
Zhao
fa18d4a68b using Thunk function before defined
这里的 Thunk 函数是使用函数表达式定义的,意味着 Thunk 函数不能在定义前使用。
2017-01-09 16:39:55 +08:00
goodyboy6
20a5e6b182 Update object.md
const descriptor = Object.getOwnPropertyDescriptor(o, 'foo');
==>
const descriptor = Object.getOwnPropertyDescriptor(obj, 'foo');
2017-01-09 15:41:07 +08:00
Sam Yang
b9a4aa449d 代码片段有误
http://es6.ruanyifeng.com/#docs/decorator#为什么修饰器不能用于函数?这一节的第二个代码片段,函数声明和变量声明都会提升,但是函数声明先于变量声明
2017-01-09 11:26:56 +08:00