noteit
c.on(\'ready\', function () {
c.list(function (err, list) {
if (err) throw err
list.map(item => {
item.name = Buffer.from(item.name, \'binary\').toString(\'utf8\')
// item.name = Buffer.from(item.name, \'binary\').toString(\'utf8\') // 若设置了传输数据类型为ASCII
})
console.dir(list)
c.end()
})
})

 

分类:

技术点:

相关文章:

  • 2022-01-21
  • 2021-09-09
  • 2021-12-27
  • 2021-08-13
  • 2021-03-31
  • 2021-12-10
  • 2021-04-02
  • 2021-10-08
猜你喜欢
  • 2021-05-10
  • 2021-11-19
  • 2021-12-27
  • 2021-09-24
  • 2021-11-12
  • 2021-11-06
  • 2021-11-14
相关资源
相似解决方案