// 数组去重
Array.prototype.unique = function () {
var newArr = [], temp = {}, len = this.length;
for (var i = 0; i < len; i++) {
if (!temp[this[i]]) {
temp[this[i]] = true;
newArr.push(this[i]);
}
}
return newArr;
}