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