摘要: // Save datavar storage = require('node-persist');storage.init();var people= require('./people.json');people.forEach( (person)=>{ storage.setItem(per... 阅读全文
posted @ 2015-12-26 18:10 Zhentiw 阅读(398) 评论(0) 推荐(0) 编辑
摘要: var ary = [ { id: 1, name: "Zhentian" }, { id: 2, name: "Alice" }];for..inPrint out the props namefor(let person in ary){ console.log... 阅读全文
posted @ 2015-12-26 18:03 Zhentiw 阅读(578) 评论(0) 推荐(0) 编辑
摘要: model.setValue('genreList[0].titles[0].rating', 5) .then(function (value) { model.get('genreList[0..1].title... 阅读全文
posted @ 2015-12-26 06:06 Zhentiw 阅读(146) 评论(0) 推荐(0) 编辑