getSelection() 方法表示用户选择的文本范围或光标的当前位置。
window.getSelection();
所有主要浏览器都支持 focus() 方法
读取选中的内容:
点击领取支付宝红包
点击下载免费精品课