【发布时间】:2020-10-20 14:14:36
【问题描述】:
我的页面 test_page 的网址为 http://domain.sd/test_page,位于地址栏中。
我在 ajax 响应的同一页面中使用了带有 url filter_details 的控制器。我想在地址栏中获取地址。
现在我只能获取 ajax 请求 url
$url=\Request::getRequestUri();
echo $url; // output: filter_details
如何获取地址栏中的地址
【问题讨论】: