以下是代码: [code lang="js"] $(window).keydown(function(event){ switch(event.keyCode) { case 37 : location = ""; break; case 39 : location = ""; break; } }); [/code] 以上的代码是用在我的博客中的…
请先引入jquery库 以下是代码: [code lang="js"] jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options |…