原文如下:Event handlers are procedures that are called when a corresponding event occurs. You can use any valid subroutine with a matching signature as an event handler. You cannot use a function as an event handler, however, because it cannot return a value to the event source.
关于 Event Handler 的使用, 我自认为没有任何问题, 但看到这段话, 感觉还是不知所云subroutine 跟 function 有什么区别? return a value to the event source 又指什么? event 本来就不需要返回值, event 只是负责发布事件而已, 至于如何返回事件处理结果, 不是该它管的感觉是写这个文档的人自己就没搞明白吧, 所以随便糊弄了一篇文章出来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货