This is actually superior to the onkeyup type of event shown in the HTML input in Listing 1.
这确实要比清单1中HTML input所用的onkeyup事件类型更高级。
The dojoAttachEvent declaration will cause the onkeyup events (coming from the input node) to trigger the onKeyUp widget's method calls.
dojoAttachEvent 声明会导致 onkeyup 事件(来自输入节点)触发 onKeyUp 小部件的方法调用。
OnKeyUp and validate are the functions that define the logic of the widget.
onKeyUp和validate是两个函数,定义了小部件的逻辑。
应用推荐