跳到主要内容
博客
笔记
工具
关于
搜索
前端基础
Javascript
Selection
Selection
获取用户选择的文本范围,或者插入符号的位置
window
.
getSelection
(
)
document
.
getSelection
(
)