Demo entry 6365239

c

   

Submitted by c on May 18, 2017 at 09:54
Language: JavaScript. Code size: 208 Bytes.

function setCookie(key,value,day){
	var date = new Date();
	date.setDate(date.getDate() + day);
	document.cookie = key + "=" + escape(value) + ";expires=" + date;
}			
setCookie("aaa","ab; $,_小明def",10);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).