网站介绍:文章浏览阅读370次。function getCookie(name) { var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); if (arr != null) return decodeURI(arr[2]); return "";}function SetCookie(name,value)//两个参数,一个是cookie的名子,一_var match = document.cookie.match(new regexp());
- 链接地址:https://blog.csdn.net/zyx_19841210/article/details/6321096
- 链接标题:js 读写cookie_var match = document.cookie.match(new regexp());-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5177
- 网站标签:var match = document.cookie.match(new regexp());