轻量级库,用于跨浏览器事件支持 [英] Lightweight library for cross-browser event support

查看:101
本文介绍了轻量级库,用于跨浏览器事件支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

跨浏览器的处理有时很麻烦。



在这种情况下,我需要捕获很多事件,但不能使用超过 10ish Kb 的多功能库。 (例如jQuery,Prototype,Dojo,YUI等)



该脚本旨在作为我所维护的各个站点的基本跟踪工具。



每个浏览器似乎都可以处理事件






如果有人能指出我一个用于跨浏览器事件处理的Javascript库,我将非常高兴。



这会让我开心! =)

解决方案

迪恩·爱德华兹(Dean Edwards):
http://dean.edwards.name/weblog/2005/10/add-event2/



或John Resig的一个:
http:// ejohn .org / blog / flexible-javascript-events /


Cross-browser handling is quite a hassle sometimes.

In this case I need to capture quite a number of events, but cannot afford to use a multi purpose library that exceeds 10ish Kb. (e.g. jQuery, Prototype, Dojo, YUI, ...)

The script is meant as a basic tracking tool for various sites I'm maintaining.

Every browser seems to handle events slightly and sometimes completely differently!


I would be really happy if someone could point me out to a Javascript library meant for cross-browser event handling.

This would make my day! =)

解决方案

Dean Edwards' : http://dean.edwards.name/weblog/2005/10/add-event2/

Or the one from John Resig: http://ejohn.org/blog/flexible-javascript-events/

这篇关于轻量级库,用于跨浏览器事件支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆