将逻辑放在一个动作方法中并不能保证该逻辑在视图呈现之前得到执行,因为页面视图并不总是在用户触发的事件之后。
Placing the logic inside an action method does not guarantee that it will be executed prior to rendering because a page view is not always preceded by a user-triggered event.
事件,例如方法或者构造器调用,类或者对象初始化,以及异常,这些都是有效的aop触发器。
Events, such as methods or constructor calls, classes or object initialization, and exceptions, are all valid AOP triggers.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
dojoAttachEvent声明会导致onkeyup事件(来自输入节点)触发 onKeyUp小部件的方法调用。
The dojoAttachEvent declaration will cause the onkeyup events (coming from the input node) to trigger the onKeyUp widget's method calls.
使用以下格式指定方法事件上的触发。
The following format is used to specify triggers in method events.
一旦字符事件触发了characters方法,则获取实际已翻译的数据并添加至已翻译的字符串表中。
Once the characters event triggers the characters method, the actual translated data is caught and added to the translated strings table.
注意这个例子中的exitAction使用了一个空项,因为我们只触发该方法的进入事件。
Note that an empty term is used for the exitAction in this example because we're triggering the dumps on method entry only.
将其放入web页面中,然后激活事件处理程序(单击按钮,在域之间按tab键切换焦点,或者使用设置的任何方法来触发请求)。
Put it into your Web page and then activate your event handler (click a button, TAB out of a field, or use whatever method you set up to trigger a request).
这里的触发事件是随着应用程序使用适当的方法推动解析器在标记流中前进而解析出来的XML标记。
In this case, the triggering event is an XML token that is parsed when the application advances the parser along the token stream using the appropriate method.
一旦你习惯了新的绑定、触发器及动画支持,你就很难回到老风格命令式的、事件驱动的UI编程方法。
Once you get used to the new bind, trigger and animation support, it is hard to go back to the old style of imperative, event-driven UI programming.
在异步操作完成或者事件触发的时候,就会调用方法并作为对该事件的反应。
When the asynchronous operation finishes or when the handled event takes place, a method gets called and executed as a reaction to the event.
第二个参数是在触发菜单事件时调用的方法的全限定名。
The second parameter to the macro is the fully qualified name of the method that should be called when the menu event is triggered.
只要此套接字对象读取到来自服务器的数据,就会触发ondata事件,该事件将由为onData定义的处理方法处理。
Whenever this socket object reads data from the server, it will fire an onData event that will be handled by the handler defined for onData.
看似无关的parse方法触发对XML文档的语法分析,这导致了调用事件处理器。
The innocent-looking parse method triggers parsing of the XML document which, in turn, calls the event handler.
介绍数据采集控件的事件触发方法,以及在事件中如何传递批量数据。
The article introduces the method that how to trigger the event of ActiveX Control used to acquire data, and how to transfer batch data in the event.
这个特别的方法将会触发指定的事件类型上所有绑定的处理函数。但不会执行浏览器默认动作。
This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.
这个特别的方法将会触发指定的事件类型上所有绑定的处理函数。但不会执行浏览器默认动作。
This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.
应用推荐