摘要: function AddEvent(obj, evt, fn){ var saved; if(typeof obj[“on" + evt] == " function") { saved = ojb["on" + evt]; } obj["on" + evt] = function() { if(saved) saved(); fn(); }}var functions =[];function addEvent(obj , evt, fns){ functions.push(fn); if(typeof obj [&quo 阅读全文
posted @ 2011-09-14 21:53 Space Tian 阅读(386) 评论(0) 推荐(0) 编辑