var fs = require('fs');///读取配置问题的方法function readFile() { var fileStr = fs.readFileSync('c:\\config.json', {encoding:'binary'}); var buf = new Buffer(fileStr, 'binary'); var str = JSON.parse( iconv.decode(buf, 'GBK')); return str;}//