Get URL query string parameters

前端 未结 11 1440
长情又很酷
长情又很酷 2020-11-22 17:41

What is the \"less code needed\" way to get parameters from a URL query string which is formatted like the following?

www.mysite.com/category/subcateg

11条回答
  •  臣服心动
    2020-11-22 17:48

    I will recommended best answer as

    Assuming the user entered http://example.com/?name=Hannes

    The above example will output:

    Hello Hannes!

提交回复
热议问题