// Save datavar storage = require('node-persist');storage.init();var people= require('./people.json');people.forEach( (person)=>{ storage.setItem(person.id.toString(), person);});// get datalet person_11 = storage.getItem(11);
本文共 227 字,大约阅读时间需要 1 分钟。
// Save datavar storage = require('node-persist');storage.init();var people= require('./people.json');people.forEach( (person)=>{ storage.setItem(person.id.toString(), person);});// get datalet person_11 = storage.getItem(11);
转载地址:http://kskla.baihongyu.com/