然后,查看目标场景的 action 属性,并根据这个属性值更新(设置或相加)本地状态模型中的分数。
The score is updated by looking at the action attribute for the target scene and using this either to set or to add to the score in the local state model.
此外,屏幕或者控件也能够定义本地状态(使用变量),并使用控件结构来对集合进行迭代,从而根据条件显示用户界面的各个部分。
In addition, a screen or control can define local state (using variables) and use control structures to iterate over collections and conditionally show parts of the user interface.
“ zippers ” 这个名称表示像拉链一样沿树上下移动,将关注节点上方的部分作为 zippers 的开口部分,本地状态作为闭合部分。
The name "zipper" refers to moving up and down the tree like a zipper, with the part above the focal node as the open part of the zipper and the local state as the closed part.
应用推荐