表单的提交方式get和post的区别
<form class="layui-form" method="post" target="_blank" action="${pageContext.request.contextPath}/admin/login" >
form标签中常见的属性定义:
calss:表示使用哪种形式的表单布局 这里使用layui框架,所以这里使用class=“layui-form”
action:指定表单组件数据发送的位置
,如果没有定义action属性,那么默认提交为当前页面
method:定义表单提交方式
,只有两种常用get、post。如果没有指定method,默认使用get提交方式
get/post的区别
参考资料:
/linhu007/article/details/12625179