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

互联网+ 战略版

互联网+ 战略版

刘润 / 中国华侨出版社 / 2015-5-1 / 49.8

1、“互联网+”上升为国家战略,“互联网+”成为下一个超级畅销书的热点话题在商业环境巨变的今天,传统企业该怎么走?传统企业转型是一个系统工程,如何定战略、抓主要矛盾? 2、首本“互联网+传统企业”的战略指导书。“我互联网+”时代到来了,传统企业的外部环境发生了哪些变化?了解商业新生代的新商业环境,跟之前工业时代的不同,从战略上指导传统企业转型,更安全也更大局把握游刃有余。一起来看看 《互联网+ 战略版》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

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

html转js在线工具