文件名称:whats-element:whats-element.js 为每一个DOM元素计算出可定位到它的唯一的标识符
文件大小:3.41MB
文件格式:ZIP
更新时间:2024-08-23 11:07:42
javascript html unique-identifier JavaScript
定位一个网页DOM元素,一般会以 id,class,name 作为标识符,通过 getElementById、getElementByName 、 querySelector API来定位、获取指定元素。而针对一些无任何标识的节点,如 文本 是否有方法定位到它们呢? 作用 为任意DOM元素,计算出它可定位到它的唯一标识符 为任意DOM元素,计算出它的DOM信息,如基于窗口的相对位置,基于文档的相对位置,是否在视窗内。 引入&使用方法 方式一:JavaScript文件 [removed][removed] 方式二:npm包引用(推荐) npm install whats-element --save import whatsElement from 'whats-element'; 使用方法 var whats
【文件预览】:
whats-element-master
----extension()
--------manifest.json(1KB)
--------images()
--------scripts()
--------_locales()
----src()
--------whatsElement.js(4KB)
--------helper.js(2KB)
--------whatsElementPure.js(9KB)
----.babelrc(158B)
----img()
--------draw.png(5KB)
----demo()
--------demo.css(4KB)
--------index.html(6KB)
--------highlight.pack.js(12KB)
--------demo.mp4(2.98MB)
--------highlight.css(776B)
--------wechat.html(701KB)
--------extension.html(2KB)
----gulpfile.js(2KB)
----LICENSE(1KB)
----dist()
--------whatsElement-2.2.2.zip(48KB)
--------whatsElementPure.min.js(5KB)
--------whatsElement-2.2.1.zip(47KB)
--------whatsElement.js(12KB)
--------whatsElement-2.1.3.zip(46KB)
--------whatsElement-1.0.4.zip(35KB)
--------whatsElement-2.1.0.zip(46KB)
--------whatsElement-2.0.0.zip(46KB)
--------whatsElement-2.1.2.zip(46KB)
--------whatsElement-2.2.0.zip(47KB)
--------whatsElement-1.0.5.zip(35KB)
--------whatsElement.min.js(7KB)
--------whatsElement-2.3.1.zip(48KB)
--------whatsElement-2.1.1.zip(46KB)
----pure.js(135B)
----.gitignore(983B)
----index.js(131B)
----readme.md(3KB)
----package.json(954B)