Chrome 控制台给了我这个错误:
Uncaught TypeError: Cannot call method 'get' of undefined
我搜索该行并找到了这个:
function _createResponder(element, eventName, handler) {
var registry = Element.retrieve(element, 'prototype_event_registry');
if (Object.isUndefined(registry)) {
CACHE.push(element);
registry = Element.retrieve(element, 'prototype_event_registry', $H());
}
var respondersForEvent = registry.get(eventName);
未捕获的类型错误:无法调用未定义的方法“get”
if (Object.isUndefined(respondersForEvent)) {
respondersForEvent = [];
registry.set(eventName, respondersForEvent);
}