#去重时

使用Jquery的$.unique去重时,注意先排序再去重

varyearArray=newArray(2009,2009,2010,2010,2009,2010);$.unique(yearArray);返回2009,2010,2009,2010varyearArray=newArray(2009,2009,2010,2010,2009,2010);yearArray.sor...