Created
January 24, 2019 18:13
-
-
Save icehongssii/003c7f7b517c5b06d1d0cdda96a2e316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadScript(src) { | |
let script = document.createElement('script'); | |
script.src = src; | |
document.head.append(script); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment