SOURCE

console 命令行工具 X clear

                    
>
console
//编码

var base64Str=new Buffer("Node.js代码在线运行").toString('base64');
console.log("encode: "+base64Str);
//解码

var decode=new Buffer(base64Str, 'base64').toString();
console.log("decode: "+decode);