Math.tan(1); // 1.5574077246549023 或者这样 function getTanDeg(deg) { var rad = deg * Math.PI/180; return Math.tan(rad); }
或者这样