javascript cookie attributes
Translation results:
English [ˈkʊki] US [ˈkʊki]
n. Cookies; small desserts; attractive young women; sweet bread
Plural: cookies
javascript cookie attributessyntax
Function:Can set or query all cookies related to the current document.
Syntax: document.cookie
Description: This attribute is a readable and writable string. You can use this attribute to modify the current document Read, create, modify and delete cookies.
Note: The behavior of this property is different from ordinary read/write properties.
javascript cookie attributesexample
<html> <body> <meta charset="UTF-8"> 与当前文档有关的cookid:<br> <script type="text/javascript"> document.write(document.cookie) </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance