pathToBase64
pathToBase64(path)
.then(base64 => {
console.log(base64)
})
.catch(error => {
console.error(error)
})
base64ToPath
base64ToPath(base64)
.then(path => {
console.log(path)
})
.catch(error => {
console.error(error)
})
首先將插件引入項目。按照image-tools - DCloud 插件市場上面的操作即可;文章來源地址http://www.zghlxwxcb.cn/news/detail-649308.html
文章來源:http://www.zghlxwxcb.cn/news/detail-649308.html
到了這里,關于uni-app base64轉(zhuǎn)圖片的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!