Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
[js] 姉さんincludeです! | おれせか
おれせか

なんかそれっぽいのをうにうに。

.ready() waits for .getScript()
訳:.ready()は.getScript()を待つよ!

しまった。まんますぎた。

This addition would allow users to dynamically load remote scripts and have them be executed before the main flow of the application commences.

This is very useful functionality, and similar to the features provided by Dojo, Mochikit, and OpenJSAN.

A solution would allow users to do the following:

 $.getScript("http://foo.com/bar.js");
 $.getScript("/my/test.js");

 $(document).ready(function(){
   bar(); // use bar from bar.js
   test(); // use test from test.js
 });

This proposal currently doesn’t call for the scripts in getScript to be loaded synchronously - meaning that the above test.js could be loaded, and executed, before bar.js.

今まで知らんかったっっっ。
とりあえず、これで毎回プラグイン追加する度にscriptタグ増やさなくてよいわけですね!

てかこのページに書いてあること、他にもけっこう知らなかったことが・・・。

・・・て、この機能1.2.6現在まだ未実装っぽいな。

んでもまぁ、

$.getScript("/my/test.js", function(){
  $(document).ready(function(){
    test(); // use test from test.js
  });
});

って形で.ready()を.getScript()のコールバックにしとけば一応期待通りの動作にはなるっぽいね。

でもこの方法だと複数個.getScript()しときたい場合、ネストしまくってキモイコードになりそだから今のところ素直にscriptタグで読み込むのが一番ってとこでしょーか。

PAGETOP
PAGETOP
PAGETOP

Comments (17)

I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me.

[2013/12/12 (木) 16:27]

これは、すべての情報が非常に明確に与えられている、非に有益な記事だ。

[2014/05/14 (水) 17:10]

ルー大柴の声の音声解説の機械(首から提げてヘッドホンで聞くやつ)まで借りてウロウロ

[2014/05/27 (火) 16:43]

今まで知らんかったっっっ。
とりあえず、これで毎回プラグイン追加する度にscriptタグ増やさなくてよいわけですね!

[2014/12/25 (木) 13:02]

みんなをずっと待ち望んでいて袋。

ブランドミュウミュウとシャネル。

協力するミュウミュウ×スーパーコピーシャネルシリーズを包んでモデルを包んですでに全球邁。

宝のめでたい(ミュウミュウ)。

専売店と公式サイトで売り出させた。

シャネルシリーズはひとつのがいつでも携帯する休む包み。

スーパーコピーhttp://www.ubagpan.com/

モデルのことができるので。

すばらしい黒色と流行っている濃い赤色はミュウミュウ。

だけある天然皮革スーパーコピー上で現れます。

[2015/05/13 (水) 16:45]

両肩についてこの季のヴィトン通販広範に流行っているので包んで。

流行を見抜くことができるのも実は巡回するで。

異なる風格は過ぎて数年また流行り始めて。

休む騒動の飛躍、各種が高くて大きい上の贅沢なブランドにも次から次へとこ。

ような流行っている傾向に参加させて。

ヴィトン通販http://www.jbagvuitton.com/

大衆の好みを満足させに来ます。

今回のルイ・ヴィトンLV(Louis Vuitton)も2014秋冬の全く新しいリュックサックのシリーズを出して。

ブランドのヴィトン通販すばらしいMonogramプリントの図の紋様を主なにして。

復古の息の十分な両肩かばんを設計します。

[2015/05/13 (水) 16:49]

しかつめらしい定番エルメスのブランドベルト中で幽霊の馬。

ユーモアがある元素に参加して。

1つにはエルメスブランドを展示する。

がすばらしくて重々しいが。

ブランドベルトhttp://www.beltrakuten.com/

ユーモアに富を極めます。

2つにはエルメスブランド。

大家の巧みで完璧な技術を展示して。

非常規のブランドベルト形と特殊なアクセサリーと構造。

精致なベルトを結び付けます。

[2015/05/13 (水) 16:51]

もっと良い更に優良品質。

革製品を心をこめて現れるため。

プラダ(Prada)は2014秋冬季にすばらしいSaffiano皮革とMicrooctagonプリント。

製造する紳士かばんのプラダコピー袋のシリーズを使いを出します。

プラダ(Prada)が改めて演繹して製造してSaffiano小さい牛革。

作る三大シンボル的な型で袋を包みに用いて。

プラダコピーhttp://reldabag.com/

それぞれショッピングして。

ブリーフケース、紳士のクラシックのプラダコピーハンドバッグを包むのです。

[2015/05/13 (水) 16:55]

グッチの腕時計の独特な命名はブランド。

自身に予想もできない効果を持ってきました。

現実の中のグッチ激安は表して世界で壇を表して。

フランシスコ・グッチのワールドミュージックの史でに似ていて。

おなじな評判が盛大で。

積極的に文化と慈善事業を推進するを通じて(通って)。

もし一期のカンヌ映画祭ごとに。

グッチ激安http://www.noojj.com/

“金のシュロ”の賞と世界の慈善のために力を合わせて賛助を提供する。

グッチに表して名高い人たちのグッチ激安階層で大いに尊重を受けるだけではありません。

それ一般人の中で良好な言い伝えをも確立しました!

[2015/05/13 (水) 16:56]

グッチ激安の腕時計の独特な命名はブランド。

自身に予想もできない効果を持ってきました。

グッチ激安http://www.noojj.com/

現実の中のグッチは表して世界で壇を表して。

フランシスコ・グッチのワールドミュージックの史でに似ていて。

おなじな評判が盛大で。

積極的に文化と慈善事業を推進するを通じて(通って)。

もし一期のカンヌ映画祭ごとに。

“金のシュロ”のグッチ激安賞と世界の慈善のために力を合わせて賛助を提供する。

グッチに表して名高い人たちの階層で大いに尊重を受けるだけではありません。

それ一般人の中で良好な言い伝えをも確立しました!

[2015/05/13 (水) 16:56]

全く新しいシャネル激安が袋を包むのは統一するサイズで。

肩紐は調節することができて。

しかも気の向くままに回転してワンショルダーバッグ或いは手提げかばんに替えることができます。

シャネルの出したのは新しく増大してコンピュータ。

シャネル激安http://www.tokyochanel.com/

ブリーフケースとDeluxe繊細で精巧なブリーフケースを手で持つことができて。

各式の設計が皆付け加えて間隔がある異なる用途の内外があって。

フラットパネルのコンピュータ。

ファイルあるいは服を受け入れるのシャネル激安に便宜を図って。

気楽に仕事と個人の用品を区別します。

[2015/05/13 (水) 17:00]

流行を見抜くことができるのも実は巡回するで。

異なる風格は過ぎて数年また流行り始めて。

休む騒動の飛躍、各種が高くて大きい上の贅沢なブランドにも次から次へとこ。

[2015/09/16 (水) 15:56]

l直書きでネスト作るこ

[2015/10/13 (火) 16:58]

最初にシャネル激安は皮革のかばんの方面の製作のブランドに従事するので、
シャネルコピーhttp://www.cctoh.com/
80年代始まって、流行の都市の中の低い人の後でシャネル激安を安定させて、

初めは異なる製品の種類を創建して、
シャネル靴新作
財布、腕時計、靴、眼鏡、ピアス、バッグ
たくさんフランスからの流行するブランドシャネル激安が私達の市場の中まで(に)入ると言いますが、
CHANELカーフショルダーバッグ24cm シャネルコピー8094レッド独有巧妙風格

[2015/11/13 (金) 12:58]

まぁなんかあるでしょ。

[2016/01/15 (金) 17:47]

でもこの方法だと複数個.getScript()しときたい場合、ネストしまくってキモイコードになりそだから今のところ素直にscriptタグで読み込むのが一番ってとこでしょーか。

[2016/06/20 (月) 11:19]

異なる風格は過ぎて数年また流行り始めて。

[2016/06/27 (月) 18:41]
PAGETOP

Comment Form

PAGETOP

Trackbacks (0)

トラックバックはありません。

PAGETOP

Trackback URL

PAGETOP

Search