📜  vue localstore - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:45.112000             🧑  作者: Mango

代码示例1
watch: {
  input: function () {
    if (isLocalStorage() /* function to detect if localstorage is supported*/) {
      localStorage.setItem('storedData', this.input)
    }
  }
}