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

  

posted on 2017-07-31 10:51  O-Hua  阅读(2293)  评论(0编辑  收藏  举报