我想在我的代码中删除函数创建,但我不知道怎么做?这里有人可以帮助我吗?
for (var eventName in this.events) {
var eventFunc = this.events[eventName],
splitEventName = eventName.split(" "),
eventType = splitEventName[0],
eventUI = splitEventName[1];
Utilities.addEventListener(this.ui[eventUI], eventType, (function(view, eventFunc) {
return function(e) {
eventFunc.call(view, e);
};
}(this, eventFunc)));
}