Skip to content

Instantly share code, notes, and snippets.

@viko16
Last active January 4, 2016 03:59
Show Gist options
  • Save viko16/8565479 to your computer and use it in GitHub Desktop.
Save viko16/8565479 to your computer and use it in GitHub Desktop.
在没有jQuery的环境下引入jQuery支持。 #javascript
//引入jquery
var j = document.createElement('script');
j.setAttribute('src', 'http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js');
document.body.appendChild(j);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment