From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../reference/global_objects/math/sin/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/sin') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html index fffb0dc1a1..866091c8b8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html @@ -5,30 +5,30 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sin ---
{{JSRef("Global_Objects", "Math")}}
-

概述

+

概述

Math.sin() 函数返回一个数值的正弦值。

-

语法

+

语法

Math.sin(x)
-

参数

+

参数

x
一个数值(以弧度为单位)。
-

描述

+

描述

sin 方法返回一个 -1 到 1 之间的数值,表示给定角度(单位:弧度)的正弦值。

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

-

示例

+

示例

-

例子:使用 Math.sin

+

例子:使用 Math.sin

Math.sin(0);           // 0
 Math.sin(1);           // 0.8414709848078965
@@ -68,7 +68,7 @@ Math.sin(Math.PI / 2); // 1
-

相关链接

+

相关链接