Incrementing Cookie Value by 1 via Javascript
问题 I have below code for Reading and Setting Cookie taken from w3schhols.com . I have problem while incrementing the value of Cookie function isNumber (o) { return ! isNaN (o-0) && o !== null && o.replace(/^\s\s*/, '') !== "" && o !== false; } function setCookie(c_name,value,exdays) { var date=new Date(); date.setTime( date.getTime() + (exdays*24*60*60*1000) ); expires='; expires=' + date.toGMTString(); document.cookie=c_name + "=" + value + expires + '; path=/'; } function getCookie(c_name) {