您的位置: 首页 > 文章 > 脚本获取地址栏当前页面名称 脚本获取地址栏当前页面名称 分类: 文章 • 2022-04-28 17:58:14 window.location.href.substring(window.location.href.lastIndexOf('/')+1, window.location.href.lastIndexOf('.'));