var orgArr = []; angular.forEach($scope.dispatchDocuments.items, function (item, index) { orgArr.push(item.inNotes); }) var uniqueArr2 = Array.from(new Set(orgArr)); angular.forEach(uniqueArr2, function (inNotes, index) { $scope.inNotes += inNotes; if (index != (uniqueArr2.length - 1)) { $scope.inNotes += '\n'; } })
正文
js去重
这篇文章最后更新于1564天前,您需要注意相关的内容是否还可用,如有疑问请联系作者!
文章版权声明:除非注明,否则均为红色火线自媒体博客原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...