JavaScript双击不选中文字

120 阅读1分钟

代码

window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();