cos 方法

返回数的余弦值。

Math.cos(number)

必选项 number 参数是需要计算余弦的数值表达式

说明

返回值为其数字参数的余弦值。

要求

版本 1

请参阅

tan 方法

应用于: Math 对象