JS获取Cookie_getcookiebyname-CSDN博客

网站介绍:文章浏览阅读2.1k次。function getCookieByName(name) { const cookie = document.cookie; return cookie.split(`; ${name}=`).pop().split(';').shift(); }_getcookiebyname