摘要:
``` var crypto = require('crypto'); var fs = require('fs'); //从文件创建一个可读流 var stream = fs.createReadStream('./wu.jpg'); var fsHash = crypto.createHash('md5'); stream.on('data', function(d) { fsHash.upd 阅读全文
摘要:
递归 var arr = [ {"id":1,"parent_id":0,"name":"Foods"}, {"id":2,"parent_id":1,"name":"Fruits"}, {"id":3,"parent_id":2,"name":"apple"}, {"id":4,"parent_i 阅读全文