cookie

document.cookie.match('(^|;) ?' + cookie中存的key + '=([^;]*)(;|$)');

原文地址:https://www.cnblogs.com/Running00/p/12849197.html