Skip to content

Instantly share code, notes, and snippets.

@yukidarake
Created November 2, 2011 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukidarake/1332868 to your computer and use it in GitHub Desktop.
Save yukidarake/1332868 to your computer and use it in GitHub Desktop.
jQueryを使ってないページでjQueryを使用可能にし、何かする
(function() {
var d = document,
s = d.createElement('script');
s.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js';
s.onload = function() {(function($) {
// $('body') ...
})(jQuery)};
d.body.appendChild(s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment