Skip to content

Commit daa455f

Browse files
committed
use https for some links
1 parent 84dba56 commit daa455f

9 files changed

+55
-55
lines changed

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>ES6标准参考教程</title>
44
<script>
5-
var loc = 'http://es6.ruanyifeng.com';
5+
var loc = 'https://es6.ruanyifeng.com';
66
var regex = /http:\/\/es6\.ruanyifeng\.com\/docs\/([^#]+)#(.+)/;
77
var result = regex.exec(window.location);
88
if (result) {

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
- [淘宝](https://s.taobao.com/search?q=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8+%E7%AC%AC3%E7%89%88)
1818
- [京东](https://search.jd.com/Search?keyword=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8%20%E7%AC%AC3%E7%89%88&enc=utf-8&wq=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8%20%E7%AC%AC3%E7%89%88)
19-
- [当当](http://product.dangdang.com/25156888.html)
19+
- [当当](https://product.dangdang.com/25156888.html)
2020
- [亚马逊](https://www.amazon.cn/ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8-%E9%98%AE%E4%B8%80%E5%B3%B0/dp/B0755547ZZ)
2121
- [China-pub](http://product.china-pub.com/6504650)
2222

book.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"weibo": null
1414
},
1515
"sidebar": {
16-
"阮一峰的个人网站": "http://www.ruanyifeng.com/blog/"
16+
"阮一峰的个人网站": "https://www.ruanyifeng.com/blog/"
1717
}
1818
},
1919
"output": null,

docs/class-extends.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ myerror.stack
654654
// ...
655655
```
656656
657-
注意,继承`Object`的子类,有一个[行为差异](http://stackoverflow.com/questions/36203614/super-does-not-pass-arguments-when-instantiating-a-class-extended-from-object)。
657+
注意,继承`Object`的子类,有一个[行为差异](https://stackoverflow.com/questions/36203614/super-does-not-pass-arguments-when-instantiating-a-class-extended-from-object)。
658658
659659
```javascript
660660
class NewObj extends Object{

docs/let.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function f() { console.log('I am outside!'); }
374374

375375
上面的代码在 ES6 浏览器中,都会报错。
376376

377-
原来,如果改变了块级作用域内声明的函数的处理规则,显然会对老代码产生很大影响。为了减轻因此产生的不兼容问题,ES6 在[附录 B](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-block-level-function-declarations-web-legacy-compatibility-semantics)里面规定,浏览器的实现可以不遵守上面的规定,有自己的[行为方式](http://stackoverflow.com/questions/31419897/what-are-the-precise-semantics-of-block-level-functions-in-es6)
377+
原来,如果改变了块级作用域内声明的函数的处理规则,显然会对老代码产生很大影响。为了减轻因此产生的不兼容问题,ES6 在[附录 B](https://www.ecma-international.org/ecma-262/6.0/index.html#sec-block-level-function-declarations-web-legacy-compatibility-semantics)里面规定,浏览器的实现可以不遵守上面的规定,有自己的[行为方式](https://stackoverflow.com/questions/31419897/what-are-the-precise-semantics-of-block-level-functions-in-es6)
378378

379379
- 允许在块级作用域内声明函数。
380380
- 函数声明类似于`var`,即会提升到全局作用域或函数作用域的头部。

docs/proposals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Math.sign(-0) // -0
328328
+0 === -0 // true
329329
```
330330
331-
目前,有一个[提案](http://jfbastien.github.io/papers/Math.signbit.html),引入了`Math.signbit()`方法判断一个数的符号位是否设置了。
331+
目前,有一个[提案](https://jfbastien.github.io/papers/Math.signbit.html),引入了`Math.signbit()`方法判断一个数的符号位是否设置了。
332332
333333
```javascript
334334
Math.signbit(2) //false

docs/reference.md

+41-41
Large diffs are not rendered by default.

docs/spec.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
本章介绍如何读懂 ECMAScript 6 的规格文件。
1212

13-
ECMAScript 6 的规格,可以在 ECMA 国际标准组织的官方网站([www.ecma-international.org/ecma-262/6.0/](http://www.ecma-international.org/ecma-262/6.0/))免费下载和在线阅读。
13+
ECMAScript 6 的规格,可以在 ECMA 国际标准组织的官方网站([www.ecma-international.org/ecma-262/6.0/](https://www.ecma-international.org/ecma-262/6.0/))免费下载和在线阅读。
1414

1515
这个规格文件相当庞大,一共有 26 章,A4 打印的话,足足有 545 页。它的特点就是规定得非常细致,每一个语法行为、每一个函数的实现都做了详尽的清晰的描述。基本上,编译器作者只要把每一步翻译成代码就可以了。这很大程度上,保证了所有 ES6 实现都有一致的行为。
1616

@@ -111,7 +111,7 @@ ES6 规格将这个标准流程,使用简写的方式表达。
111111
0 == null
112112
```
113113

114-
如果你不确定答案,或者想知道语言内部怎么处理,就可以去查看规格,[7.2.12 小节](http://www.ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison)是对相等运算符(`==`)的描述。
114+
如果你不确定答案,或者想知道语言内部怎么处理,就可以去查看规格,[7.2.12 小节](https://www.ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison)是对相等运算符(`==`)的描述。
115115

116116
规格对每一种语法行为的描述,都分成两部分:先是总体的行为描述,然后是实现的算法细节。相等运算符的总体描述,只有一句话。
117117

@@ -154,7 +154,7 @@ ES6 规格将这个标准流程,使用简写的方式表达。
154154
> 1. 如果`Type(x)`是对象,`Type(y)`是字符串或数值或`Symbol`值,返回`ToPrimitive(x) == y`的结果。
155155
> 1. 返回`false`
156156
157-
由于`0`的类型是数值,`null`的类型是 Null(这是规格[4.3.13 小节](http://www.ecma-international.org/ecma-262/6.0/#sec-terms-and-definitions-null-type)的规定,是内部 Type 运算的结果,跟`typeof`运算符无关)。因此上面的前 11 步都得不到结果,要到第 12 步才能得到`false`
157+
由于`0`的类型是数值,`null`的类型是 Null(这是规格[4.3.13 小节](https://www.ecma-international.org/ecma-262/6.0/#sec-terms-and-definitions-null-type)的规定,是内部 Type 运算的结果,跟`typeof`运算符无关)。因此上面的前 11 步都得不到结果,要到第 12 步才能得到`false`
158158

159159
```javascript
160160
0 == null // false
@@ -199,7 +199,7 @@ a2.map(n => 1) // [, , ,]
199199

200200
为什么`a1``a2`成员的行为不一致?数组的成员是`undefined`或空位,到底有什么不同?
201201

202-
规格的[12.2.5 小节《数组的初始化》](http://www.ecma-international.org/ecma-262/6.0/#sec-array-initializer)给出了答案。
202+
规格的[12.2.5 小节《数组的初始化》](https://www.ecma-international.org/ecma-262/6.0/#sec-array-initializer)给出了答案。
203203

204204
> “Array elements may be elided at the beginning, middle or end of the element list. Whenever a comma in the element list is not preceded by an AssignmentExpression (i.e., a comma at the beginning or after another comma), the missing array element contributes to the length of the Array and increases the index of subsequent elements. Elided array elements are not defined. If an element is elided at the end of an array, that element does not contribute to the length of the Array.”
205205
@@ -215,7 +215,7 @@ a2.map(n => 1) // [, , ,]
215215

216216
## 数组的 map 方法
217217

218-
规格的[22.1.3.15 小节](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.map)定义了数组的`map`方法。该小节先是总体描述`map`方法的行为,里面没有提到数组空位。
218+
规格的[22.1.3.15 小节](https://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.map)定义了数组的`map`方法。该小节先是总体描述`map`方法的行为,里面没有提到数组空位。
219219

220220
后面的算法描述是这样的。
221221

sidebar.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# [ECMAScript 6 入门]()
22

3-
作者:[阮一峰](http://www.ruanyifeng.com)
3+
作者:[阮一峰](https://www.ruanyifeng.com)
44

5-
授权:<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">署名-非商用许可证</a>
5+
授权:<a rel="license" href="https://creativecommons.org/licenses/by-nc/4.0/">署名-非商用许可证</a>
66

77
## 目录
88
1. [前言](#README)
@@ -40,6 +40,6 @@
4040
1. [参考链接](#docs/reference)
4141

4242
## 其他
43-
- [源码](http://github.com/ruanyf/es6tutorial/)
43+
- [源码](https://github.com/ruanyf/es6tutorial/)
4444
- [修订历史](https://github.com/ruanyf/es6tutorial/commits/gh-pages)
4545
- [反馈意见](https://github.com/ruanyf/es6tutorial/issues)

0 commit comments

Comments
 (0)