调试运行
<html> <head> <title>圆形面积计算</title> </head> <body> <script language="javascript"> <!-- radius = prompt("请输入圆的半径:"); area = Math.PI * Math.pow(radius,2); document.write("半径为" + radius + "的圆的面积为:" + area); //--> </script> </body> </html>