pow 方法

更新:2007 年 11 月

返回基数表达式的指定次幂的值。

function pow(base : Number, exponent : Number) : Number

参数

  • base
    必选。表达式的基数值。

  • exponent
    必选。表达式的指数值。

备注

pow 方法返回与 baseexponent 相等的数值表达式。

示例

下面的示例阐释了 pow 方法的用法。

var x = Math.pow(10,3); // x is assigned the value 1000.

要求

版本 1

应用于:

Math 对象

请参见

其他资源

Visual Basic 和 Visual C# 项目扩展性方法