代码中有action="index.html",但是我不知道调用的是什么的是方法,又有什么作用
<form class="forget-form" action="index.html" method="post">
<h3>忘记密码 ?</h3>
<p>
请输入您的电子邮箱地址来重置您的密码.
</p>
<div class="form-group">
<div class="input-icon">
<i class="fa fa-envelope"></i>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Email"
name="email"/>
</div>
</div>
<div class="form-actions">
<button type="button" id="back-btn" class="btn">
<i class="m-icon-swapleft"></i> 返回
</button>
<button type="submit" class="btn blue pull-right">
提交 <i class="m-icon-swapright m-icon-white"></i>
</button>
</div>
</form>
将表单的数据提交到index.html
action
属性用于指定表单数据提交的目的地...
index.html 有很多种可能性,比如URL重写,路由配置等等,找到对应的代码,善用编辑器的整个目录的代码搜索功能
调用的什么方法是看form标签的method属性,如果是post,就是post方法,如果是get,就是get方法。
而action是提交表单时向何处发送表单数据。
更多的你可以看看w3school的介绍:
HTML <form> 标签