# 划词检索 (March 8, 2023)

```javascript
function showSelection() {
    let selection = document.getSelection();
    console.log(selection);
    return selection.toString();
}

document.addEventListener("selectionchange", showSelection)
```