实例. 在本例中,我将取得正数和负数的绝对值: document.write(Math.abs(7.25) + "") document.write(Math.abs(-7.25) + "
www.w3school.com.cn