时间:2024-10-12 05:08:00
1、在获取Cookie之前,要先拥有Cookie。
2、使用getCookies方法获取所有Cookie,然后找到名字为MyName的Cookie。
3、执行代码,控制台中会返回名字为MyName的Cookie。