js 如果cookie存了有很多值 怎样读取自己想要的
js 如果cookie存了有很多值 怎样读取自己想要的
日期:2017-07-20 17:00:14 人气:1
白菜编辑部 function readCookie (name) { var cookieValue = ""; var search = name + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf (search); if (offset != -1)