chore(i18n,curriculum): processed translations (#42258)
This commit is contained in:
@@ -27,7 +27,7 @@ dashedName: link-to-internal-sections-of-a-page-with-anchor-elements
|
||||
|
||||
通过修改 `href` 属性值为 `"#footer"`,同时修改文本 `cat photos` 为 `Jump to Bottom`,来更改外部链接为内部链接。
|
||||
|
||||
然后添加一个 `<footer>` 元素,并将它的 `id` 属性值设置为 `footer`。
|
||||
从锚点标签中删除 `target="_blank"` 属性,因为这会导致链接文档在新窗口标签中打开。
|
||||
|
||||
然后给页面底部的 `<footer>` 元素添加一个 `id` 属性,值为 `footer`。
|
||||
|
||||
|
@@ -19,7 +19,7 @@ numbers.splice(startIndex, amountToDelete, 13, 14);
|
||||
console.log(numbers);
|
||||
```
|
||||
|
||||
`12` 的第二个条目已被删除,我们在同一索引处添加 `13` 和 `14`。 `numbers` 数组现在将会是 `[ 10, 11, 12, 13, 14, 15 ]`。
|
||||
第二个 `12` 已被删除,我们在同一索引处添加 `13` 和 `14`。 `numbers` 数组现在将会是 `[ 10, 11, 12, 13, 14, 15 ]`。
|
||||
|
||||
在上面的代码中,数组一开始包含了若干数字。 接着,我们调用 `splice()` 方法,索引为 (3) 的地方开始删除元素,删除的元素数量是 (1)。然后,(13, 14) 是在删除位置插入的元素。 可以在 `amountToDelete` 后面传入任意数量的元素(以逗号分隔),每个都会被插入到数组中。
|
||||
|
||||
|
Reference in New Issue
Block a user