PI 属性

PI 属性就是 π,即圆的周长和它的直径之比。这个值近似为 3.142。

语法:
  1. Math.PI;
示例:
  1. console.log( Math.PI );
结果:
  1. >>>
  2. 3.141592653589793