SOURCE

const convertToPinyinString = function(val){
  return val ? pinyin4js.convertToPinyinString(
    val,
    '',
    pinyin4js.WITHOUT_TONE
  ) : ''
} 
console 命令行工具 X clear

                    
>
console