您可以使用鼠标选择网页的一部分.
我知道我可以获取当前选定的文本,但是如何获取包含当前选择的开头或结尾的DOM元素?
html javascript dom selection
dom ×1
html ×1
javascript ×1
selection ×1