cookie存储、获取、删除封装方法总结
/ 获取cookie/function getCookie (name){ //export暴露方法的写法export const getCookie = (name) => { var arr, reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)') if (arr = document.cookie.match(reg)...