Home > Article > Web Front-end > JavaScript method to return all key value comparisons of the current session cookie_javascript skills
The example in this article describes how JavaScript returns all key-value comparisons of the current session cookie. Share it with everyone for your reference. The details are as follows:
The following JS code outputs all cookie key value comparisons
<!DOCTYPE html> <html> <body> Cookies associated with this document: <script> document.write(document.cookie); </script> </body> </html>
The output results on this machine are as follows;
I hope this article will be helpful to everyone’s JavaScript programming design.