JavaScript实现样条插值 以下是使用JavaScript实现的样条插值的完整源码: function SplineInterpolator(points) { var n = points.length - 1; var x = [], a