看教程过程中感觉有些不顺的地方#584
Conversation
|
Please make the requested changes. After it, add a comment "/done". |
|
客气啦,其实也不知道改的有没问题 😓 |
|
请问,是把这些更新的内容在webstorm编辑器内我自己的分支提交吗?还是在github上操作?
@YAYAXUEYU, 在你提交这个PR的那个分支里提交即可, 看了下貌似这个分支 yyxygit:fix-yyxygit<https://github.com/yyxygit/zh.javascript.info/tree/fix-yyxygit>, 您再查看下?
|
|
@bemself push上来了,292de64 |
|
@yyxygit 好像有冲突文件呢, 您查看解决一下? 另外看到多出来2个文件(之前是5个好像), 回网我看下多出来的文件修改~ |
|
@bemself 在github上解决冲突了,然后点击了merge,您看是这样处理吗? |
|
@yyxygit 👍 等回网看下新增加的文件. 另外提醒一下那个done的标记不是写在"commit message"里, 而是像我们现在这样对话的 "issue comment"里面. P.S. 那好,俺以后不用您了, 不过俺也不是前辈, 大家一起学习拉 |
|
/done |
| 在我们学习了那些之后,我们将回到对象,在<info:prototypes>和<info:classes>章节中深入介绍它们。 | ||
| ``` | ||
| 在我们学习了那些之后,我们将回到对象,在 <info:prototypes> 和 <info:classes> 章节中深入介绍它们。 | ||
|
|
There was a problem hiding this comment.
218 行 添加了<>前后空格
219 行 有三个反引号
没有删掉啊?
There was a problem hiding this comment.
@bemself webstorm 分支 fix-yyxygit里是有的,pull了分支代码就没了,
再提交以下吧
| ``` | ||
|
|
||
| 正如我们看到的那样,`Map` 的键可以被转化为字符串而不是像普通对象那样不能转化, 任何类型的键都是可能的. | ||
| 如我们所见,与对象不同,键不会转换为字符串。键(key)可以是任何类型。 |
There was a problem hiding this comment.
这里出现两次键, 而这个带英文注释的“键(key)”放在后面。建议:
- (key)放在第一个键的后面,第二个键就不需要了
- 另外查一下,如果前文已经有过(key)注释了,这里也就不需要了~
There was a problem hiding this comment.
收到,搜过中文网页了,全页没有 ”键(key)“形式注释过,42行改为:
如我们所见,与对象不同,键(key)不会转换为字符串。键可以是任何类型。
这样?
|
|
||
| 使用对象作为键是 `Map` 最出名也是最重要的特点. 对于字符键, `Object` (普通对象)能正常使用, 但是使用键就会产生意料之外的效果. | ||
|
|
||
| 使用对象作为键是 `Map` 最值得注意和重要的功能之一。对于字符串键, `Object` (普通对象)能正常使用,但对于对象键则不能。 |
There was a problem hiding this comment.
| 使用对象作为键是 `Map` 最值得注意和重要的功能之一。对于字符串键, `Object` (普通对象)能正常使用,但对于对象键则不能。 | |
| 使用对象作为键是 `Map` 最值得注意和重要的功能之一。对于字符串键,`Object`(普通对象)能正常使用,但对于对象键则不能。 |
There was a problem hiding this comment.
| - `map.entries()` -- returns an iterable for entries `[key, value]`, it's used by default in `for..of`. | ||
| - `map.keys()` -- 返回键名的遍历器, | ||
| - `map.values()` -- 返回键值的遍历器, | ||
| - `map.entries()` -- 返回实体 `[key, value]` 的遍历器,默认在for..of中使用。 |
There was a problem hiding this comment.
| - `map.entries()` -- 返回实体 `[key, value]` 的遍历器,默认在for..of中使用。 | |
| - `map.entries()` - 返回实体 `[key, value]` 的遍历器,默认在 `for..of` 中使用。 |
There was a problem hiding this comment.
请问,英文中两个半角中划线 --
替换成一个全角中文中划线?
| - `map.values()` -- returns an iterable for values, | ||
| - `map.entries()` -- returns an iterable for entries `[key, value]`, it's used by default in `for..of`. | ||
| - `map.keys()` -- 返回键名的遍历器, | ||
| - `map.values()` -- 返回键值的遍历器, |
There was a problem hiding this comment.
| - `map.values()` -- 返回键值的遍历器, | |
| - `map.values()` - 返回键值的遍历器, |
| - `map.keys()` -- returns an iterable for keys, | ||
| - `map.values()` -- returns an iterable for values, | ||
| - `map.entries()` -- returns an iterable for entries `[key, value]`, it's used by default in `for..of`. | ||
| - `map.keys()` -- 返回键名的遍历器, |
There was a problem hiding this comment.
| - `map.keys()` -- 返回键名的遍历器, | |
| - `map.keys()` - 返回键名的遍历器, |
| @@ -325,4 +325,4 @@ set.forEach((value, valueAgain, set) => { | |||
| - `set.clear()` -- 清空 set。 | |||
There was a problem hiding this comment.
| - `set.clear()` -- 清空 set。 | |
| - `set.clear()` - 清空 set。 |
| @@ -325,4 +325,4 @@ set.forEach((value, valueAgain, set) => { | |||
| - `set.clear()` -- 清空 set。 | |||
| - `set.size` -- 返回当前全部元素的数量。 | |||
There was a problem hiding this comment.
| - `set.size` -- 返回当前全部元素的数量。 | |
| - `set.size` - 返回当前全部元素的数量。 |
|
Please make the requested changes. After it, add a comment "/done". |
|
/done |
bemself
left a comment
There was a problem hiding this comment.
感谢翻译,校对完成~ Map 文件中有些历史遗留问题,不在本 PR 里面改了,回头我单开一个 PR 更正

目标章节:
1-js/04-object-basics/06-constructor-new/
1-js/05-data-types/01-primitives-methods/
1-js/05-data-types/02-number/
当前上游最新 commit:da7c9de7
所做更改如下: