# Classes

Mime
Test

# Mime

Kind: global class
Field: 2021/01/16

# new Mime()

作用:媒体类型的处理

# mime.lookup(url)

作用:媒体类型的判断

Kind: instance method of Mime

Param Type Description
url string 图片的链接

Example

const shareUrl = 'https://joyrun-activity-upyun.thejoyrun.com/huodong/2020/09/run-challenge/assets/img/share.jpg'
const mimeInstance = new Mime();
mimeInstance.lookup(shareUrl) // 'image/jpg'
1
2
3

# Test

Kind: global class
Field: 2021/01/16

# new Test()

作用:测试

# test.test(url)

作用:媒体类型的判断

Kind: instance method of Test

Param Type Description
url string 图片的链接

Example

lastUpdate: 1/16/2021, 1:59:44 PM