“`” get的参数会显示在浏览器地址栏中,而post的参数不会显示在浏览器地址栏中;

使用post提交的页面在点击【刷新】按钮的时候浏览器一般会提示“是否重新提交”,而get则不会;

用get的页面可以被搜索引擎抓取,而用post的则不可以;

用post可以提交的数据量非常大,而用get可以提交的数据量则非常小(2k),受限于网页地址的长度。

用post可以进行文件的提交,而用get则不可以。

参考阅读:<a class=""url"" href=""http://www.cnblogs.com/skynet/archive/2010/05/18/1738301.html"" target=""_blank"">http://www.cnblogs.com/skynet/archive/2010/05/18/1738301.html</a>

 

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.