您的位置:编程知识库>js写Cookie

js写Cookie

  • 2012-01-15JS操作的读取Cookies、写入Cookies、删除Cookies

    js也能操作cookie,下面就向你展示关于js操作cookie的读取,写入和删除功能函数 读取 function setCookie(NameOfCookie, value, expiredays) { var ExpireDate = new Date (); ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000)); document...