方法1:用js,直接取消选中的文本
window.getSelection().empty()
方法2:用css,对特定区域设置选中透明效果
p::selection {background: transparent}
方法3:用css,禁止选中
user-select: none;
getSelection 文档:https://developer.mozilla.org/zh-CN/docs/Web/API/Window/getSelection
user-select文档:https://developer.mozilla.org/zh-CN/docs/Web/CSS/user-select