0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

jqueryが使いたいとき(動作確認用)

Last updated at Posted at 2017-05-10

jqueryを一時的に利用したいとき

デバッガコンソールで実行.
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js");
document.getElementsByTagName("head")[0].appendChild(script);

jQueryUI.
var style = '<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.min.css">';
$('head link:last').after(style);
var script1 = document.createElement("script");
script1.setAttribute("src", "http://code.jquery.com/jquery-1.10.2.min.js");
document.getElementsByTagName("head")[0].appendChild(script1);
var script2 = document.createElement("script");
script2.setAttribute("src", "http://code.jquery.com/ui/1.10.3/jquery-ui.min.js");
document.getElementsByTagName("head")[0].appendChild(script2);
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?