摘要: JSON 文件转换成 JS 对象 直接使用 node 的 require() 方法即可将 JSON 文件转换成 JS 对象: // test.json { "name": "张三", "age": 22 } // test.js const test = require('./test.json') 阅读全文
posted @ 2021-05-27 12:05 热心码农小吕 阅读(1199) 评论(0) 推荐(1) 编辑