摘要: Selection对象的属性如下:var selection = window.getSelection();console.log(selection);通过上面的代码在控制台查看; anchorNode: {node} 节点; 包含了用户选取内容的起点的节点。anchorOffset {int} 阅读全文
posted @ 2019-11-08 17:16 srckeeper 阅读(754) 评论(0) 推荐(0) 编辑