0
我想設置將在20分鐘內過期的cookie。我可以設置一天的時間設置。我可以應對這種情況嗎?Angularjs在20分鐘內設置Cookies過期
var date = new Date();
cookies.put("userName","My Name",{'expires':date.getDate()+1});
cookies.put("userNickName","My NickName",{'expires':date.getDate()+1});
cookies.put("userID","My ",{'expires':date.getDate()+1});