<script src="jQuery.1.8.3.js" type="text/javascript"></script> <script src="jquery.cookie.js" type="text/javascript"></script> 设置 $.cookie('the_cookie', 'the_value', { expires: 7 }); 读取 $.cookie('the_cookie'); 没有的话,返回NULL