1.操作cookie的插件jquery.cookie.js添加$.cookie('the_cookie', 'the_value');设置时长$.cookie('the_cookie', 'the_value', { expires: 7 });