$.cookie('history_back', backurl, { expires: 7, path: '/' });
创建一个key为"history_back",value为backurl,过期时间为7天,生效路径为根路径的cookie
var current_theme = $.cookie('current_theme')==null ? 'cerulean' :$.cookie('current_theme');
从cookie获取current_theme的值如果为空则取天蓝色,不是则取cookie值