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 ''
Comments
Post a Comment