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

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

问题描述

跨浏览器处理有时是一个麻烦。



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



脚本是为我维护的各种网站的基本跟踪工具。



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



或来自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/

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

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