javascript - When I get the cookie, it is null -
i want cookies have setted, when use console.log(document.cookie), value null.why? code:
document.cookie="name=hi"; document.cookie="displayname=hello"; var strcookie=document.cookie; console.log(strcookie); //output ''
why? query relevant information, dont's find solution of problem.can me? thank you!
Comments
Post a Comment