很无语按照插件代码一摸一样,就是时报错 errMsg: "loadFontFace:fail NetworkError: A network error occurred."好无语
大佬们帮忙看看
loadFontFaceFromLocal() {
uni.loadFontFace({
family: 'font-test',
// 本地字体路径需转换为平台绝对路径
source: `url(${plus.io.convertLocalFileSystemURL('_www/static/Pacifico.ttf')})`,
success() {
console.log('success')
},
fail(e) {
console.log('fail', e)
}
})
},
guanjialababy
楼主赐教下怎么解决
2023-02-28 13:07