赞
踩
async loadFonts() {
console.log(location.href.split("#")[0] + "static/font/font_84.ttf");
const font = new FontFace(
"font84",
"url(" + location.href.split("#")[0] + "static/font/font_84.ttf" + ")"
);
await font.load();
document.fonts.add(font);
document.body.classList.add("fonts-loaded");
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。