1.0.7 • Published 3 months ago
@hysjs/hys v1.0.7
File:
方法名 | 描述 | 参数 | 返回值 |
---|---|---|---|
blobToImage | 文件流转图片 | blob:文件流;type:转换格式('image/png','image/jpeg) | 返回值:直接把url赋值给img的src |
blobToBase64 | 文件流转base64 | blob:文件流 callback:回调函数(base64) | 无 |
Tree:
方法名 | 描述 | 参数 | 返回值 |
---|---|---|---|
treeToArr | 树形数组转平铺数组 | arr | 扁平化 |
arrToTree |