microdata:在浏览器中提取HTML5微数据的模块

时间:2021-04-30 18:49:35
【文件属性】:
文件名称:microdata:在浏览器中提取HTML5微数据的模块
文件大小:51KB
文件格式:ZIP
更新时间:2021-04-30 18:49:35
JavaScript 微数据 在浏览器中提取HTML5微数据的模块 兼容性 微数据使用 ,这是选择器引擎的包装。 如果不将选择器引擎插入其中,则默认为querySelector / querySelectorAll。 有关更多信息,请参见 。 安装 $ npm install --save microdata 原料药 微数据(模式,元素) 查找具有给定itemtype的所有元素,提取它们的数据并以数组形式返回它们。 如果给出elem,则仅在该元素内查找。 例子: microdata ( 'http://data-vocabulary.org/Person' ) 返回值示例: [ { "_type" : "http://data-vocabulary.org/Person" , "photo" : "http://diveintohtml5.info/examples/2000_05_mark
【文件预览】:
microdata-master
----.gitignore(44B)
----README.md(2KB)
----test()
--------test.html(3KB)
--------mocha.css(3KB)
--------test.js(1KB)
--------chai.js(108KB)
--------mocha.js(110KB)
----.jshintrc(38B)
----package.json(603B)
----index.js(2KB)
----.travis.yml(35B)

网友评论