Metadata

程序名称:Metadata

授权协议: 未知

操作系统: 未知

开发语言:

Metadata 介绍

This plugin is capable of extracting metadata from classes, random attributes,
and child elements.

For example, you can do:

<li class="someclass {some: 'data'} anotherclass">...</li> OR <li data="{some:'random', json: 'data'}">...</li> OR <li><script type="data">{some:"json",data:true}</script> ...</li>

The default is the first method, but you can always change it by twiddling the
options. This means that there is at least one option here that can appease
you.

After that you can simply do:

var data = $('li.someclass').metadata(); if ( data.some && data.some == 'data' ) alert('It Worked!');

There’s also a bunch of options (like the ability to ignore braces {}).

For full documentation see http://docs.jquery.com/Plugins/Metadata.

Metadata 官网

http://plugins.jquery.com/project/metadata

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...