: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

代码的未来

代码的未来

[日] 松本行弘 / 周自恒 / 人民邮电出版社 / 2013-6 / 79.00元

《代码的未来》是Ruby之父松本行弘的又一力作。作者对云计算、大数据时代下的各种编程语言以及相关技术进行了剖析,并对编程语言的未来发展趋势做出预测,内容涉及Go、VoltDB、node.js、CoffeeScript、Dart、MongoDB、摩尔定律、编程语言、多核、NoSQL等当今备受关注的话题。   《代码的未来》面向各层次程序设计人员和编程爱好者,也可供相关技术人员参考。一起来看看 《代码的未来》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具