Parameter separator in URLs, the case of misused question mark

前端 未结 3 2062
無奈伤痛
無奈伤痛 2021-01-11 09:27

What I don\'t really understand is the benefit of using \'?\' instead of \'&\' in urls:

\"question

3条回答
  •  感情败类
    2021-01-11 10:08

    From the URI spec's (RFC 3986) point of view, the only separator here is "?". the format of the query is opaque; the ampersands just are something that HTML happens to use for form submissions.

提交回复
热议问题