admin管理员组

文章数量:1594755

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");
},

本文标签: 加载字体文件js