本文内容主要来自:http://www.w3school.com.cn/js/jsref_sqrt.asp /** *返回一个数的平方根 *@param x 必须的 >=0 * */ Math.sqrt(x);