<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>checked.html</title> <meta http-equiv="keywords" content="keyword1,...
一、根据cookie名称获取cookie的值
// 函数定义
function getCookie(name) {
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
// 三步运算法
// 对应python:return (r[1] if r else u...