gpt4 book ai didi

ruby-on-rails - Ruby on rails 获取 # params

转载 作者:行者123 更新时间:2023-12-04 05:05:40 24 4
gpt4 key购买 nike

如果我在查询字符串中得到一个#test,我正在尝试在后端做一些事情,但我似乎找不到。

有谁知道如何获得这些变量?

示例网址

loocalhost:3000/#test

谢谢

最佳答案

这称为 fragment identifier .

来自 http://www.w3.org/Addressing/URL/uri-spec.html

A reference to a particular part of a document may, including the fragment identifier, look like

http://www.myu.edu/org/admin/people#andy

in which case the string "#andy" is not sent to the server, but is retained by the client and used when the whole object had been retrieved.

关于ruby-on-rails - Ruby on rails 获取 # params,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15533766/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com