:attr

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 15:27:21

软件介绍

This very small plugin to jQuery adds the ':attr' selector to the custom selector list.
It allows specifying more advanced options on attributes than the usual [@attribute] selector.

Example of use:

$('p:attr( @id>2 && @id<4 )').hide();
    would hide every paragraphs with 2<id<4...

You can compare strings with the following syntax:
$('p:attr( "@id">"B" )');
     would select every paragraphs where id>B in alphabetical order.

The expression placed in parameter will be evaluated with the attributes values and you can put any boolean-evaluated expression inside the parenthesis like the following


$('p:attr((@id==1) || (@id>2 && @id<4))').hide();

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

Introduction to Algorithms, 3rd Edition

Introduction to Algorithms, 3rd Edition

Thomas H. Cormen、Charles E. Leiserson、Ronald L. Rivest、Clifford Stein / The MIT Press / 2009-7-31 / USD 94.00

Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad ......一起来看看 《Introduction to Algorithms, 3rd Edition》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具