localStorage
getItem(key)
setItem(key, value)
try catch で囲む