带GET参数的URL格式? [英] URL format with GET parameters?

查看:638
本文介绍了带GET参数的URL格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有某个规范列出了将GET变量传递给URL的正确方法?

Is there a specification somewhere listing the correct way to pass GET variables to a URL?

通常我会这样做(第一个变量用?表示,第二个和随后由&发布:

Normally I do it like this (first variable indicated by ?, second and subsequent indicated by &:

http://www.mysite.com/mypage.html?var1=value1&var2=value2&var3=value3

是那些?和&特别需要的,按照这些顺序?我可以吗?消除'?'并仅使用'&'传递所有变量?

Are those ? and & specifically needed, and in those order? Could I eliminate the '?' and pass all variables only with the '&' ?

推荐答案

不,你是怎么做的正确。

No, how you are doing it is correct.

http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.2

这篇关于带GET参数的URL格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆