![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Cookie
文中金域
这个作者很懒,什么都没留下…
展开
-
Cookie使用
//写入cookie function setCookie(name, value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString(); }原创 2022-05-07 14:12:35 · 57 阅读 · 0 评论 -
COOkie设置及控制器中使用
<script type="text/javascript"> $(function () { var GetMQtt = getCookie("MQTT").split(','); $("#IPConfig").val(GetMQtt[0]); $("#Prot").val(GetMQtt[1]); $("#ClientID").val(GetMQtt[2]); $(".原创 2020-06-29 16:04:57 · 1671 阅读 · 0 评论