Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,嗨,朋友,我创建了一个应用程序,在一个文本字段中,我从用户那里获取输入作为 id,并根据 id 显示信息。在运行时,我正在添加另一个文本字段,但假设用户插入了错误的 id,那么我想从表单中删除所有文本字段。可以删除之前添加的文本字段。
我不确定您要在这里实现什么,但 Form.delete(int itemNum) 和 Form.deleteAll() 将允许您删除已添加到表单的项目。
请参阅表单文档。