🔁 去重工具

一键删除重复行。免费使用,浏览器端处理。

分享: 🐦 Twitter 📘 Facebook

相关工具

关于此工具

一键删除重复行。免费使用,浏览器端处理。

使用方法

工具网络

ToolfastproSkillgohubSmarttoolgoBesttoolfun
function initTool() { var label = '去重操作'; var btnLabel = '处理'; var runStr = 'lines=>[...new Set(lines)].join("\\n")'; var scriptTags = document.getElementById('tool-app').parentElement.querySelectorAll('script[data-run]'); if (scriptTags.length) runStr = scriptTags[0].getAttribute('data-run'); document.getElementById('tool-app').innerHTML = '
';
}
function doIt() {
  var lines = document.getElementById('inp').value.split(String.fromCharCode(10));
  var result = [...new Set(lines)].join(String.fromCharCode(10));
  document.getElementById('out').textContent = result;
}
function clearAll() { document.getElementById('inp').value = ''; document.getElementById('out').textContent = ''; }
window.addEventListener('DOMContentLoaded', initTool);





n