VueJS - logging localStorage item returns correct result, but assign same item to var returns {__ob__: Observer}

后端 未结 0 1914
既然无缘
既然无缘 2020-11-28 06:16

I\'m trying to understand why this is happening.

In created() of my Vue component, if I console.log a localStorage item directly I get the correct result

相关标签:
回答
  • 消灭零回复
提交回复
热议问题