美文网首页
使用circular-json进行JSON转换

使用circular-json进行JSON转换

作者: 喜欢走弯路的人 | 来源:发表于2023-03-12 09:20 被阅读0次

1、 安装插件包:

npm install -S circular-json   

2、 在项目中引用:

import CircularJSON from 'circular-json'

3、JSON格式转化:

let menuNode = CircularJSON.stringify(copyNode)

let nodeData = CircularJSON.parse(menuNode )

相关文章

网友评论

      本文标题:使用circular-json进行JSON转换

      本文链接:https://www.haomeiwen.com/subject/epmfrdtx.html