jQuery Live Bind

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 20:12:46

软件介绍

Using $.fn.is_match(selector) to build a live bind method:

sample:
<div class="kkkk">
<div class="ppp1" title="333">hello1</div>
</div>
<script>
  function alr(){alert(this.innerHTML);}
  function alr1(){alert('hello:'+this.innerHTML);}
  $.live_bind(".kkkk  .ppp1 + .ppp[title='333']", 'click', alr);
  $.live_bind(".kkkk  .ppp[title='333']:nth-child(3)", 'click', alr1);
  //"tr:eq(3)" should be "tr:nth-child(4)"
  //"tr:gt(3)" should be "tr:nth-child(4) ~ tr"
  //"tr:gt(0)" could be "tr:not(:first-child)"
  //"tr:first" should be "tr:first-child"
  $('.kkkk').append('<div class="ppp" title="333">hello</div>');
  $('.kkkk').append('<div class="ppp" title="333">jack</div>');
</script>

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

Operating Systems

Operating Systems

Remzi Arpaci-Dusseau、Andrea Arpaci-Dusseau / Arpaci-Dusseau Books / 2012-8-19 / USD 21.00

A book about modern operating systems. Topics are broken down into three major conceptual pieces: Virtualization, Concurrency, and Persistence. Includes all major components of modern systems includin......一起来看看 《Operating Systems》 这本书的介绍吧!

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

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具