Created
September 28, 2017 03:04
-
-
Save imchao9/463852baf239cf8818fadfb4394860d1 to your computer and use it in GitHub Desktop.
import lodash.js in the browser
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 import_lodash() { | |
var jq = document.createElement('script'); | |
jq.src = "https://lodash.com/vendor/cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); | |
} | |
import_lodash(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment