Skip to content

Commit

Permalink
zh: Remove trailing punctuation in headers (#14242)
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
queengooborg and yin1999 authored Jul 14, 2023
1 parent 49f6108 commit a52c67c
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/time_to_first_byte/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TTFB 是从请求开始到响应开始之间所用的时间,以毫秒为单位
TTFB = responseStart - requestStart
```

## See Also:
## See Also

- [A typical HTTP session](/zh-CN/docs/Web/HTTP/Session)
- [PerformanceResourceTiming](/zh-CN/docs/Web/API/PerformanceResourceTiming)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ textarea.onkeyup = () => {

{{ EmbedLiveSample('主动学习:我们是重要的!', 700, 500) }}

### 斜体字、粗体字、下划线...
### 斜体字、粗体字、下划线

到目前为止,我们所讨论的元素都有明确的相关语义。{{htmlelement("b")}}、{{htmlelement("i")}} 和 {{htmlelement("u")}} 的情况却有点复杂。它们出现于人们要在文本中使用粗体、斜体、下划线但 CSS 仍然不被完全支持的时期。像这样仅仅影响表象而且没有语义的元素,被称为**表象元素**(presentational elements)并且不应该再被使用。因为正如我们在之前看到的,语义对无障碍、SEO(搜索引擎优化)等非常重要。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ guessField.focus();

页面上的每个元素都有一个 `style` 属性,它本身包含一个对象,其属性包含应用于该元素的所有内联 CSS 样式。让我们可以使用 JavaScript 在元素上动态设置新的 CSS 样式。

## 大功告成...
## 大功告成

这个示例已经构建完毕,做得好!来尝试运行一下最终的代码,或者[看看我们的最终版本](https://mdn.github.io/learning-area/javascript/introduction-to-js-1/first-splash/number-guessing-game.html)。如果你的版本无法正常工作,请对照[源代码](https://github.com/mdn/learning-area/blob/main/javascript/introduction-to-js-1/first-splash/number-guessing-game.html)进行检查。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: Web/API/Permissions_API/Using_the_Permissions_API

本文提供了使用 W3C Permission API 的基本说明,它提供了一种程序上的方式来查询当前上下文的 API 权限授权状态。

## 申请权限面临的困境...
## 申请权限面临的困境

惨淡的事实是,权限在 Web 开发中是令人厌恶却不得不面对的问题,对于开发者而言,处理它毫无乐趣。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ slug: Web/Performance/Optimizing_startup_performance

为什么异步性很重要?除了上面提出的原因,还考虑了无响应页面或用户界面的影响。如果用户错误地启动了应用,将不能取消。如果应用正在浏览器中运行,用户可能会收到一个“应用无响应”或“加载缓慢”的提醒。你应该显示几种界面,比如进度条,这样用户可以在应用启动时知道他们需要等待多长时间。

## 如果有这样的打算...
## 如果有这样的打算

如果你从头开始你的项目,通常很容易把所有的东西都写成“正确的方式”,使得代码片段具有合适的异步性。所有纯粹在启动时的计算应该在后台线程中执行,同时使主线程事件的运行时间尽可能缩短。应包含进度指示器,以便用户知道发生了什么以及他们将要等待多久。从理论上来说,无论如何,设计新的应用程序并能很好地启动应该很容易。

Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/glossary/first_contentful_paint/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ slug: Glossary/First_contentful_paint

首次內容繪製時間戳記是當瀏覽器第一次渲染任何文字、圖片(包含背景圖片),以及非空白的 canvas 標籤或 SVG 向量圖片。排除任何 iframe 裡的內容,但包含等待中的網路字體 (webfonts)。意即使用者第一次開始使用頁面內容。

## 也可以看看:
## 也可以看看

- [First Meaningful Paint](/zh-TW/docs/Glossary/first_meaningful_paint)
- [Paint Timing specification](https://w3c.github.io/paint-timing/#first-contentful-paint)
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ textarea.onkeyup = function () {

{{ EmbedLiveSample("Active learning: Let's be important", 700, 500) }}

### Italic, bold, underline...
### Italic, bold, underline

The elements we've discussed so far have clearcut associated semantics. The situation with {{htmlelement("b")}}, {{htmlelement("i")}}, and {{htmlelement("u")}} is somewhat more complicated. They came about so people could write bold, italics, or underlined text in an era when CSS was still supported poorly or not at all. Elements like this, which only affect presentation and not semantics, are known as **presentational elements** and should no longer be used, because as we've seen before, semantics is so important to accessibility, SEO, etc.

Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/web/api/eventtarget/addeventlistener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ buttonElement.addEventListener("click", {

{{EmbedLiveSample('範例')}}

### 檢閱相關:
### 檢閱相關

- [addEventListener](/zh-TW/docs/Web/API/EventTarget/addEventListener)

Expand Down
14 changes: 7 additions & 7 deletions files/zh-tw/web/api/window/location/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ results in:

Whenever a property of the location object is modified, a document will be loaded using the URL as if `window.location.assign()` had been called with the modified URL.

#### Replace the current document with the one at the given URL:
#### Replace the current document with the one at the given URL

```js
function goMoz() {
Expand All @@ -93,7 +93,7 @@ function reloadPageWithHash() {
}
```

#### Display the properties of the current URL in an alert dialog:
#### Display the properties of the current URL in an alert dialog

```js
function showLoc() {
Expand All @@ -117,7 +117,7 @@ function showLoc() {
// in html: <button onclick="showLoc();">Show location properties</button>
```

#### Send a string of data to the server by modifying the `search` property:
#### Send a string of data to the server by modifying the `search` property

```js
function sendData(sData) {
Expand All @@ -129,7 +129,7 @@ function sendData(sData) {

The current URL with "?Some%20data" appended is sent to the server (if no action is taken by the server, the current document is reloaded with the modified search string).

#### Get the value of a single `window.location.search` key:
#### Get the value of a single `window.location.search` key

```js
function loadPageVar(sVar) {
Expand All @@ -149,7 +149,7 @@ function loadPageVar(sVar) {
alert(loadPageVar("name"));
```

#### Nestle the variables obtained through the `window.location.search` string in an object named `oGetVars`:
#### Nestle the variables obtained through the `window.location.search` string in an object named `oGetVars`

```js
var oGetVars = {};
Expand Down Expand Up @@ -190,7 +190,7 @@ var oGetVars = new (function (sSearch) {
// alert(oGetVars.yourVar);
```

#### Nestle the variables obtained through the `window.location.search` string in an object named `oGetVars`, also attempting to recognize their [`typeof`](/zh-TW/JavaScript/Reference/Operators/typeof):
#### Nestle the variables obtained through the `window.location.search` string in an object named `oGetVars`, also attempting to recognize their `typeof`

```js
var oGetVars = {};
Expand Down Expand Up @@ -265,7 +265,7 @@ var oGetVars = new (function (sSearch) {
// alert(oGetVars.yourVar);
```

#### Using bookmars without changing the `window.location.hash` property:
#### Using bookmars without changing the `window.location.hash` property

```html
<!doctype html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Gecko 則不太一樣,他為 `<ul>` element 設定了 40 pixel 的 left _paddi

從結果來說,marker 都很好的附著在 `<li>` element 之前並未消失。唯一的不同點是發生在你替 `<ul>` element 設定背景顏色時。

### 不變的是 ...
### 不變的是

現在我們知道,若你希望在 Gecko, Internet Explorer 和 Opera 都有一樣的 list 外觀, `<ul>` element 的 left margin 和 left padding 都要設定。你大可不必理會 `<li>` 的設定。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const obj1 = { a: 1, b: 2 };
const obj2 = copy(obj1); // obj2 looks like obj1 now
```

### If the array is modified during iteration, other elements might be skipped.
### If the array is modified during iteration, other elements might be skipped

The following example logs "one", "two", "four". When the entry containing the value "two" is reached, the first entry of the whole array is shifted off, which results in all remaining entries moving up one position. Because element "four" is now at an earlier position in the array, "three" will be skipped. `forEach()` does not make a copy of the array before iterating.

Expand Down

0 comments on commit a52c67c

Please sign in to comment.