如何在javascript中让数组中数字排序去重,求代码Array.prototype.unique = function(){this.sort()先排序var res = [this[0]]for(var i = 1 i < this.length i++){if2023-02-20JavaScript180