繁体   English   中英

如何更改任务页面上的数据

[英]How to change the data on a task page

在我为学生学习 python 编码的网站上,我有一个完整的任务页面,该页面将所选课程的所有模块显示为下拉按钮,并在选择时显示附加到该模块的所有任务。

What I want to happen when one of those task buttons is selected is to reload the page and fill in the studentcode section and the task description section based on the task id.

有没有办法将变量(task_id)设置为默认值任务 1 并在用户单击按钮(即任务 3)时更改它,在方法或其他方法中,task_id 将更改为 3。然后重新加载页面以加载课程 X,模块 Y,任务 Z。

任何帮助,将不胜感激。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM