【发布时间】:2018-02-27 10:12:58
【问题描述】:
- 将返回域名。
- 将返回域名后剩余的 URL 但不返回查询参数?
谁能帮我阅读查询参数?
例如:http://localhost:4000/create.html?step=1
- --> http://localhost:4000
- --> create.html
- --> step=1
【问题讨论】:
谁能帮我阅读查询参数?
例如:http://localhost:4000/create.html?step=1
【问题讨论】:
Hexo 助手将在构建时执行,因此他们无法知道客户端的查询参数。
根据您的需要,您必须在客户端使用 JavaScript:window.location.search 将为您提供 ?step=1。
【讨论】: