且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将带有哈希的 url 发送到 nodejs

更新时间:2023-01-01 17:00:07

'#' 标记后的 URL 部分,称为 fragment,不发送到服务器.如果您将数据存储在片段中,则由您来处理该数据并使用 GET 参数中的数据执行 ajax 请求.

The part of the URL after the '#' mark, called the fragment, is not sent to the server. If you store data in the fragment, then it is up to you to process that data and do an ajax request with the data in a GET argument.