web开发冷知识汇总

2024-05-11 0 1
手机查看

1 浏览器对input和textarea有最大长度限制?

有,都是默认524,288个字符。

参见:https://www.dofactory.com/html/input/maxlength 和 https://www.dofactory.com/html/textarea/maxlength

2 get 和 post最大支持多大的数据?

get通常指url长度,一般是2048个字符,但不同的浏览器支持程度不一致。

可参考:https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

post,htttp协议没有限制,一般浏览器和服务器端通常有限制比如PHP,NGINX等。

可参考:

https://www.motobit.com/help/scptutl/pa98.htm

https://stackoverflow.com/questions/2880722/can-http-post-be-limitless

What do you think?
  • 点赞
    0
    点赞
  • 踩一下
    0
    踩一下
  • 酷毙了
    0
    酷毙了
  • 不屑
    0
    不屑
  • 尴尬
    0
    尴尬
  • 无聊
    0
    无聊
Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v3.5.6