Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated the Math.sin() method doc #23584

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Conversation

ikenk
Copy link
Contributor

@ikenk ikenk commented Sep 15, 2024

Description

updated the Math.sin() method doc.

Motivation

to update the doc and keep the doc up-to-date.

Additional details

Related issues and pull requests

@ikenk ikenk requested a review from a team as a code owner September 15, 2024 16:12
@ikenk ikenk requested review from irvin and removed request for a team September 15, 2024 16:12
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Sep 15, 2024
Comment on lines 4 to 5
page-type: javascript-static-method
browser-compat: javascript.builtins.Math.sin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
page-type: javascript-static-method
browser-compat: javascript.builtins.Math.sin

Copy link
Contributor

github-actions bot commented Sep 15, 2024

Preview URLs

(comment last updated: 2024-09-18 03:17:40)

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

存在一些问题

Comment on lines 8 to 9
## 概述

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 概述

@@ -7,11 +7,13 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/sin

## 概述

**`Math.sin()`** 函数返回一个数值的正弦值。
**`Math.sin()`** 静态方法返回一个弧度的正弦值。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**`Math.sin()`** 静态方法返回一个弧度的正弦值
**`Math.sin()`** 静态方法以弧度为单位返回一个数字的正弦值

@@ -22,19 +24,21 @@ Math.sin(x)

## 描述
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 描述
### 返回值


由于 `sin` 是 `Math` 的静态方法,所以应该像这样使用:`Math.sin()`,而不是作为你创建的 `Math` 实例的方法。
由于 `sin` 是 `Math` 的静态方法,所以应该像这样使用:`Math.sin()`,而不是作为你创建的 `Math` 实例的方法(`Math` 不是构造函数)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
由于 `sin``Math` 的静态方法,所以应该像这样使用:`Math.sin()`,而不是作为你创建的 `Math` 实例的方法`Math` 不是构造函数)。
由于 `sin()``Math` 的静态方法,应该总是以 `Math.sin()` 的形式,而不是作为 `Math` 对象的方法来使用它`Math` 不是构造函数)。


由于 `sin` 是 `Math` 的静态方法,所以应该像这样使用:`Math.sin()`,而不是作为你创建的 `Math` 实例的方法。
由于 `sin` 是 `Math` 的静态方法,所以应该像这样使用:`Math.sin()`,而不是作为你创建的 `Math` 实例的方法(`Math` 不是构造函数)

## 示例

### 示例:使用 `Math.sin`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### 示例:使用 `Math.sin`
### 使用 Math.sin()

## 描述
## 返回值

`x` 的正弦值,介于 -1 到 1 之间(包含 -1 和 1)。如果 `x` 为 {{jsxref("Infinity")}}、`-Infinity` 或 {{jsxref("NaN")}},则返回 {{jsxref("NaN")}}。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`x` 的正弦值,介于 -1 到 1 之间(包含 -1 和 1)。如果 `x` 为 {{jsxref("Infinity")}}、`-Infinity` 或 {{jsxref("NaN")}},则返回 {{jsxref("NaN")}}。
`x` 的正弦值,介于 -1 到 1 之间(包含 -1 和 1)。如果 `x` 为 {{jsxref("Infinity")}}、`-Infinity` 或 {{jsxref("NaN")}}则返回 {{jsxref("NaN")}}。

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 感谢

@jasonren0403 jasonren0403 merged commit 6150841 into mdn:main Sep 18, 2024
7 checks passed
@ikenk ikenk deleted the update-Math-sin branch September 22, 2024 10:44
sora32127 pushed a commit to sora32127/translated-content that referenced this pull request Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants