📅  最后修改于: 2022-03-11 15:03:19.127000             🧑  作者: Mango
function loadScript(src: string): void {
const tag = document.createElement('script')
tag.async = false
tag.src = src
tag.type = "module" // if it's a module
document.body.appendChild(tag)
}