jquery.jsを同一ページで何回も読み込んだらどうなるんだろう? というわけでやってみます。
大丈夫なようです。
以上
なんかひどい感じになってますが、これはブログのCSSがわるさしてるんでしょうか? 影をつけているのは http://edgarverle.com/shadow/default.cfm にあるjQueryのプラグインです。 本当なら簡単にかっこいい影が付く感じです。
<script type="text/javascript"> $(function() { $("#shadowtest").shadow(); }); </script> <div id="shadowtest">影ついてる?</div>
何度読み込もうとも作用するのは1回だけですよ。jquery.js の先頭を見るのだ。
// prevent execution of jQuery if included more than once if(typeof window.jQuery == “undefined”) { …
C言語とかのヘッダファイルでよくやる感じで多重読み込み防止措置が入っているのです。
ほー、なるほど。
#ifndef HOGEHOGE_H #define HOGEHGOE_H
#endif
Wonderful website. Lots of helpful information here. I am sending it to several buddies ans also sharing in delicious. And obviously, thank you to your effort!
メールアドレスが公開されることはありません。
コメント
名前
メール
サイト
次回のコメントで使用するためブラウザーに自分の名前、メールアドレス、サイトを保存する。
新しいコメントをメールで通知
新しい投稿をメールで受け取る
なんかひどい感じになってますが、これはブログのCSSがわるさしてるんでしょうか?
影をつけているのは
http://edgarverle.com/shadow/default.cfm
にあるjQueryのプラグインです。
本当なら簡単にかっこいい影が付く感じです。
以上
何度読み込もうとも作用するのは1回だけですよ。jquery.js の先頭を見るのだ。
// prevent execution of jQuery if included more than once
if(typeof window.jQuery == “undefined”) {
…
C言語とかのヘッダファイルでよくやる感じで多重読み込み防止措置が入っているのです。
ほー、なるほど。
#ifndef HOGEHOGE_H
#define HOGEHGOE_H
#endif
Wonderful website. Lots of helpful information here.
I am sending it to several buddies ans also sharing in delicious.
And obviously, thank you to your effort!