我有一个基础问题。尽管在谷歌、www.w3schools.com等地方搜索,但我无法找到关于form action="."的解释。
有人知道在表单中"."动作的含义吗?它是特定于Django还是Bootstrap的?
下面是代码:
{% extends "Blog.html" %}
{% block blog%}
<h1>Create an account</h1>
<p>Please, sign up using the following form:</p>
<form action="." method="post">
{{ user_form.as_p }}
{% csrf_token %}
<p><input type="submit" value="Create my account"></p>
</form>
{% endblock %}
action="process.php"
? 在我看来,每个人都会写action="同一页"。 - Tariq Ahmed