1.form表单使用get提交的时候,action中的参数不能传递,需要添加一个隐藏域。
如需要跳转的地址是www.baidu.com?key1=value1&key2=value2;
<form action="www.baidu.com" method="get">
<input name=”key1” type=”hidden” value=”value1”>
<input name=”key2” type=”hidden” value=”value2”>
</form>
2.form表单使用post提交时,只设置method="post"即可