摘要:
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 阅读全文