js cookie
multi cookie & read bug
document.cookie;// "access_token_test=eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiRGV2ZWxvcGVyIiwiZXhwaXJlZCI6MTU0MDAxNTg4MjgwMSwiYXV0aCI6WyJwdWJsaXNoIl0sInVzZXJfbmFtZSI6Inh4eHgiLCJ0b2tlbl9rZXkiOiJhY2Nlc3NfdG9rZW5fdGVzdCIsImVtYWlsIjpudWxsfQ.HZUwdyOU3rqpr_bkQZfMdlDFwY7iC8fQKlqxRTCc5Ek; access_token_prod=eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiQWRtaW4iLCJleHBpcmVkIjoxNTQwMDE2MDkzODA5LCJhdXRoIjpbInB1Ymxpc2giLCJvcGVyYXRpb24iLCJhY2NvdW50Il0sInVzZXJfbmFtZSI6ImFkbWluIiwidG9rZW5fa2V5IjoiYWNjZXNzX3Rva2VuX3Byb2QiLCJlbWFpbCI6bnVsbH0.qzDBwIld35c62ip-SG7jDz4vzqCOEyLyeux9dVLVxmU"
multi cookie
read bug
$ npm i js-cookie$ npm i -S js-cookie
cookie getter
a more simple cookie getter method!
function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i