問題文
A dynamic action fires when a checkbox changes and the developer wants one behavior while the box is ticked and the opposite behavior while it is clear. Which statement describes how that is expressed?
選択肢
- The developer sets the condition on the region that holds the element so that the region is rendered again by the server whenever the value of the checkbox is changed by the user.
- The dynamic action carries a set of actions for the case in which its condition holds and a separate set for the case in which it does not hold so that the two sets can hide and show the same element in turn.
- The developer writes one action of the kind that runs code in the browser and puts the branch inside that code and the framework evaluates the condition only once when the page is first rendered.
- The developer creates two dynamic actions on the same element and gives each of them a condition and one dynamic action carries only a single set of actions for the case in which its condition holds.