📅  最后修改于: 2022-03-11 15:02:15.501000             🧑  作者: Mango
// example.json
{
"name": "testing"
}
// ES6/ES2015
// app.js
import * as data from './example.json';
const {name} = data;
console.log(name); // output 'testing'