node vue xx.push is not a function

 oldData在没有转成对象之前 是报 oldData.push is not a function错误的

fs.readFileSync同步读取文件返回值是字符串,虽然打印和对象格式一样,

需要JSON.parse转成对象就可以了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-08-10
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案