摘要: const hash = window.location.hash.substr(1) // 此处的解释为:获取哈希值,然后去掉‘#’ substr()字符串方法: stringObject.substr(start,length) 从索引值start开始截取,截取长度为length 若length 阅读全文
posted @ 2020-10-01 16:03 wing1377 阅读(451) 评论(0) 推荐(0) 编辑