代码 <script> function getCookie(key) { let cookies = document.cookie; //获取所有cookie字符串 let list = cookies.split("