检查渐进数组-JavaScript