js 数学运算次方和开方

次方:Math.pow(值,次方数)

       例如:Math.pow(2,2);   2的平方

     Math.Pow(2,3);   2的立方

开方:Math.sqrt(值)

  例如:Math.sqrt(9);   9开方,返回结果3

posted @ 2019-12-25 16:39  执手听风吟  阅读(4411)  评论(0编辑  收藏  举报