var attrs = data.attrs; // 获取事件 id
var on = data.on; // 事件实际存储位置,这里返回的是 undefined
if (attrs && on && attrs['eventid'] === eventid) {
eventTypes.forEach(function (et) {
var h = on[et];
if (typeof h === 'function') {
res.push(h);
} else if (Array.isArray(h)) {
res = res.concat(h);
}
});
return res
}