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

Cypherpunks

Cypherpunks

Julian Assange、Jacob Appelbaum、Andy Müller-Maguhn、Jérémie Zimmermann / OR Books / 2012-11 / GBP 8.99

Cypherpunks are activists who advocate the widespread use of strong cryptography (writing in code) as a route to progressive change. Julian Assange, the editor-in-chief of and visionary behind WikiLea......一起来看看 《Cypherpunks》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换