Methods
end()
- Source:
打印结束点
getExt(filename) → {String}
- Source:
获取文件后缀名
Example
getExt("123.png.sd.jpg") // jpg
Parameters:
Name | Type | Description |
---|---|---|
filename |
String | 文件名字 |
Returns:
文件后缀
- Type
- String
getFormData(object) → {FormData}
- Source:
对象转化为FormData对象
Example
let req={
file:'xxx',
userId:1,
phone:'15198763636',
}
getFormData(req) // FormData {}
Parameters:
Name | Type | Description |
---|---|---|
object |
Object |
Returns:
- Type
- FormData
start()
- Source:
打印开始点