【文件属性】:
文件名称:within-selection:获取当前文本选择中包含的元素
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-13 00:38:31
JavaScript
内选
获取包含在选择中的元素
安装
使用或 NPM 安装:
$ component install bmcmahen/within-selection
$ npm install within-selection
用
var within = require ( 'within-selection' ) ;
within ( 'span' ) ; // get all spans within the selection
执照
麻省理工学院
【文件预览】:
within-selection-master
----.gitignore(30B)
----example.html(1KB)
----package.json(673B)
----Makefile(166B)
----History.md(107B)
----index.js(1KB)
----Readme.md(370B)
----component.json(452B)
----test()
--------within-selection.js(968B)