Skip to content

Commit 6bcd2e9

Browse files
committed
优化翻译
1 parent 258cc0e commit 6bcd2e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

1-js/05-data-types/03-string/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ for (let char of "Hello") {
186186
let str = 'Hi';
187187

188188
str[0] = 'h'; // error
189-
alert( str[0] ); // 无法运行
189+
alert( str[0] ); // 没成功
190190
```
191191

192192
通常的解决方法是创建一个新的字符串,并将其分配给 `str` 而不是以前的字符串。

2-ui/2-events/03-event-delegation/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ One more counter: <input type="button" value="2" data-counter>
199199
</script>
200200
```
201201

202-
如果我们点击按钮 —— 它的值就会增加。但不仅仅是按钮,一般的方法在这里也很重要
202+
如果我们点击按钮 —— 它的值就会增加。这里重要的不是按钮,而是这种通用方法
203203

204204
我们可以根据需要使用 `data-counter` 特性,多少都可以。我们可以随时向 HTML 添加新的特性。使用事件委托,我们属于对 HTML 进行了“扩展”,添加了描述新行为的特性。
205205

0 commit comments

Comments
 (0)