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.
我想显示我的数据库中的记录列表,然后对于每条记录,有两个字段,用户可以就地编辑,而无需定向到另一个页面进行编辑。我该怎么做
这个鸡蛋可能是一个解决方案,我希望你仍然需要它。虽然我觉得我迟到了。
为您的页面创建一个模板,其中包含列表的 HTML、编辑字段和提交按钮。您可以使用现有的管理模板作为指导。定义一个处理帖子和更新数据库的视图函数。