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