base64-from-url
v1.0.0
Published
通过URL或者链接, 将返回的数据转换成Base64
Downloads
7
Maintainers
Readme
import getBase64FromUrl from 'base64-from-url'
//
getBase64FromUrl('url').then(function (res) {
// => base64
console.log(res.data)
})
<script src="base64-from-url"></script>
<script>
getBase64FromUrl('url').then(function (res) {
// => base64
console.log(res.data)
})
</script>