Metadata

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-09 05:58:43

软件介绍

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.

本文地址:https://codercto.com/soft/d/22972.html

信息学奥林匹克教程·提高篇

信息学奥林匹克教程·提高篇

吴耀斌 / 湖南师范大学出版社 / 2003-1 / 24.00元

《信息学奥林匹克教程》(提高篇)既有各个算法设计基本思路的讲解及对求解问题的分析,注重了算法引导分析与不同算法的比较,又给出了具体的编程思路与参考程序,程序采用信息学竞赛流行的Turbo Pascal7.0语言编写,并注重结构化与可读性。一起来看看 《信息学奥林匹克教程·提高篇》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具