📜  js 重定向到相对 url - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:52.928000             🧑  作者: Mango

代码示例3
//To get just the relative path of a window location.

const RELATIVE_PATH = window.location.pathname;