然后,使用一组链接的方法返回隐藏的表单元素。
Then, it uses a set of chained methods to return the hidden form elements.
类似地,不可编辑的表单只有在所提交表单数据中包含了名为demo_checkbox的post参数时才会包含这个隐藏表单元素。
Similarly, the non-editable version of the form contains the hidden form element only if the submitted form data contains the post parameter named demo_checkbox.
您可以将表单元素一个摞一个的堆叠起来,下面的元素可以很好地隐藏掉(deck标签可以实现,这很类似于hypercard栈)。
You can stack form elements atop each other and the ones beneath are properly hidden (the deck tag does that, much like a hypercard stack).
What we're really getting at is the idea of saying I want to have a way of grouping together information into units that make sense. So I can go back to one of those topics we had at the beginning, which is the idea of abstraction, that I can create one of those units as a simple entity, bury away the details and write really modular code.
组合成为有意义的单元,那么这就让我们回到,一开始讲的话题之一了,这就是抽象的概念,也就是我可以以一个简单的,实体的形式创建这样的一个单元,把具体实现隐藏然后写一些,真正模块化的代码,我们在以后的课程中。
应用推荐