var weekArray = ['週一'、'週二'、'週三'、'週四'、'週五']; //存: localStorage.setItem('weekDay',JSON.stringify(weekArray)); //取: weekArray = JSON.parse(localStorage.getItem('weekDay'));