将下面代码直接复制粘贴到ondblclick事件中window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();