在组件框架中,UI事件或解析的值绑定表达式直接导致方法调用。
In a component framework, invocations are a direct result of either UI events or resolved value-binding expressions.
您可能会认为,可以将逻辑放在映射到视图中值绑定表达式的backingbean的getter方法中。
You might assume that you can stick the logic inside the getter method of the backing bean that maps to the value binding expression in the view.
而是把按钮绑定到父组件自己的start和stop方法,使用父组件的seconds方法的插值表达式来展示秒数变化。
Instead we bind the buttons to the parent component's own start and stop methods and present the ticking seconds in an interpolation around the parent component's seconds method.
而是把按钮绑定到父组件自己的start和stop方法,使用父组件的seconds方法的插值表达式来展示秒数变化。
Instead we bind the buttons to the parent component's own start and stop methods and present the ticking seconds in an interpolation around the parent component's seconds method.
应用推荐