🌈 搜索
📅  最后修改于: 2022-03-11 14:46:33.850000             🧑  作者: Mango
// Let's an element be in the document var anchor = document.getElementById("myAnchor"); var result = anchor.pathname; // Returns:'/en-US/docs/Location.pathname'