js中的for循环,循环次数会多出一次。当循环到最后一个的时候,循环还会继续,并且此时i就变成remove? for (i in points) 改成 for(var i = 0; i < points,length; i++)