摘要: const cookie = { //根据key值获取对应的cookie getCookie(key: any) { //获取cookie const data = document.cookie //获取key第一次出现的位置 let startIndex = data.indexOf(key + '=') //如果开始索引值大于0表示有cook... 阅读全文
posted @ 2019-03-12 11:27 Fly_bokeyuan 阅读(1120) 评论(0) 推荐(0) 编辑