JavaScript 參考手冊
JavaScript Math 對象
返回指定數(shù)的反正切值:
輸出結果:
atan() 方法以介于 -PI/2 與 PI/2 弧度之間的數(shù)值來返回 x 的反正切值。
所有主要瀏覽器都支持 atan() 方法