📌  相关文章
📜  window.location.pathname 使用通配符 - Javascript 代码示例

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

代码示例1
window.location.origin   → 'https://www.samanthaming.com'
               .protocol → 'https:'
               .host     → 'www.samanthaming.com'
               .hostname → 'www.samanthaming.com'
               .port     → ''
               .pathname → '/tidbits/'
               .search   → '?filter=JS'
               .hash     → '#2'
               .href     → 'https://www.samanthaming.com/tidbits/?filter=JS#2'