为了采集数据,X Forms文档必须有多个提交目标,或者输入完成后用户点击提交按钮时数据需要发送到或者保存到的位置。
In order for the data to be collected, the XForms document must have a submission target, or someplace for the data to be sent or stored when the input is complete and the user clicks a submit button.
保存变更,然后选择一个唯一的用户名(填入了名称后点击' select username ',例如demo)。
You can save changes, and then pick a unique user name (click 'select username' once you've filled it with a name e.g. demo).
请注意,清单3中定义的sessiondata类是用于保存各种购物车信息的用户自定义数据结构(点击本文顶部或底部的code图标)。
Note that the SessionData class defined in Listing 3 is a user-defined data structure to store various shopping cart information (Click the code icon at the top or bottom of this article).
应用推荐