2015
01-09
01-09
JavaScript操作Cookie的函数汇总 118 VIEW
// get cookie with name or undefined if no name
// 根据名称获取Cookie的值
function getCookie(name) {
var matches = document.cookie.match(new RegExp("(?:^|; )"
+ name.replace(/([\.$?*|{}\(\)\[\]\\\/\.... 查看全文