form表单action带参数传递function submit(){ var u = document.forms[0].elements["user"].value; document.forms[0].action = "admin.jsp?u="+u; document.forms[0].submit();}
1.创建Django工程. 参考https://www.cnblogs.com/CK85/p/10159159.html中步骤. 2.在urls.py文件中添加url分发路径 """Django_test URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/top