Skip to content

byteToString 字节数组转字符串

source

ts
import { byteToString } from 'fe-toolsbox'
const byte = [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100] 
//紧示意,需要ArrayBuffer数据
byteToString(byte)

fe-toolsbox 前端业务常用工具库