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

ACM程序设计

ACM程序设计

曾棕根 / 北京大学 / 2011-4 / 34.00元

《ACM程序设计(第2版)》详细讲解了ACM国际大学生程序设计竞赛(ACM/ICPC)编程、调试方法,以及提高时间、空间性能的策略,并充分利用了C++泛型编程的高效率、规范化的特性,全部采用C++泛型编程。第1章讲解了ACM程序设计入门知识;第2章讲解了C++泛型编程的容器、迭代器和常用算法;第3章讲解了ACM程序设计的基本编程技巧;第4章讲解了50道原版ACM竞赛题的解题思路,并配有C++泛型编......一起来看看 《ACM程序设计》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

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

html转js在线工具

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

UNIX 时间戳转换