Distill

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-08 19:13:11

软件介绍

If you need many event handlers there are several ways to accomplish this:
1. you can use $(node).click etc or attachEvent
2. you can use inline onclick= method
The first option can be really slow if you have a huge collection of buttons that need event handling, especially in IE, while the second option causes IE to leak and run out of memory. This is why we created JDistill, it's a small library that uses bubbling to attach event handlers to thousands of items in less than a millisecond. Distill is very easy to understand and use. It's a ultra light weight event dispatcher. To associate a node with an event, just put the object that handles the event for the node in the class attribute and prefix it with com_.

      <button class='com_eventhandler'>click me</button>

The example node above can be connected to an event like this:
      myhandlers.eventhandler.click = function(){...}

And it integrates perfectly with jQuery:
     $.distill("click",myhandlers);

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

算法艺术与信息学竞赛

算法艺术与信息学竞赛

刘汝佳 / 清华大学出版社 / 2004-1 / 45.00元

《算法艺术与信息学竞赛》较为系统和全面地介绍了算法学最基本的知识。这些知识和技巧既是高等院校“算法与数据结构”课程的主要内容,也是国际青少年信息学奥林匹克(IOI)竞赛和ACM/ICPC国际大学生程序设计竞赛中所需要的。书中分析了相当数量的问题。 本书共3章。第1章介绍算法与数据结构;第2章介绍数学知识和方法;第3章介绍计算机几何。全书内容丰富,分析透彻,启发性强,既适合读者自学,也适合于课......一起来看看 《算法艺术与信息学竞赛》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

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

HEX HSV 互换工具