使用javascript

时间:2019-02-27 10:01:32

标签: javascript cookies browser session-cookies

我有一个cookie,我需要在浏览器中设置cookie。我尝试使用以下代码,但未将Cookie设置为网页。如何使用javascript做到这一点。我需要在浏览器中设置Cookie

enter image description here

我尝试使用下面的代码

document.cookie = 'JSESSIONID=' + e + expires + ';path=/geoserver;' + 'domain=http://localhost:8080/geoserver';

0 个答案:

没有答案