Vue: SyntaxError: Unexpected token o in JSON at position 1

SyntaxError: Unexpected token o in JSON at position 1 这个 错误 的 原因 是,Javascript中的 JSON.parse() 方法解析了一个类型为 Object 的数据。 主要 错因 为,该 Object类型 的数据未用 JSON.stringify() 方法封装成 JSON. 原错误程序: 正确程序:
相关文章
相关标签/搜索