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 --- .../javascript/reference/global_objects/math/tan/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/tan') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html index 49e0f3c7c2..3ecf39169a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html @@ -5,22 +5,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/tan ---
{{JSRef("Global_Objects", "Math")}}
-

概述

+

概述

Math.tan() 方法返回一个数值的正切值。

-

语法

+

语法

Math.tan(x)
-

参数

+

参数

x
一个数值,表示一个角(单位:弧度)。
-

描述

+

描述

tan 方法返回一个数值,表示一个角的正切值。

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

-

示例

-

例子:使用 Math.tan

+

示例

+

例子:使用 Math.tan

下面的函数返回变量 x 的正切值:

function getTan(x) {
    return Math.tan(x);
-- 
cgit v1.2.3-54-g00ecf