d 是buffer对象
let jsstr = JSON.stringify(d);let jsondata = JSON.parse(jsstr);let buf = new Buffer(jsondata);let data = buf.toString();sx = JSON.parse(data);console.log(sx['peer_count']);
详见百度经验:
https://jingyan.baidu.com/article/8ebacdf079f00549f75cd564.html