Given a string, find the first non-repeating character in it and return its index. If it doesnt exist, return -1. Examples: s "leetcode"
return 0.s "loveleetcode",
return 2. 思路:扫一遍,用array记录char的重复次数。…
1. //1.设置Cookie
function setCookie(name,value,days) {var date new Date();date.setDate(date.getDate() days);document.cookie name "" value ";expires" date;
}
console.log(setCookie("pwd","5566778899",1));
//获取c…