标签:i++ http length mamicode nbsp inf highlight alt src
var x = [1,2,2,3,4,5,6,7,7]
var y = x[0]
var z= []
for (var i = 0;i<x.length;i++)
{
if (y!=x[i])
{
z.push(x[i])
y = x[i]
}
}
z.push(x[0])

标签:i++ http length mamicode nbsp inf highlight alt src
原文地址:https://www.cnblogs.com/jhcla/p/12337016.html