简单封装本地存储api
npm install best-storage
import storage from 'best-storage'
// localStorage
storage.set(key,val)
storage.get(key, def)
// sessionStorage
storage.session.set(key, val)
storage.session.get(key, val)
forEach the storages and call the callback function with each storage