ちょろちょろとjQueryMobileを利用してスクリプトを書くことも多々ありまして、jQueryとjQueryMobileの組み合わせが合っていないと思わぬ動作不良を起こすことに今頃きづきまして、ならばCDN一覧をまとめて書いとけってことで書いておくことにします。
このままコピペして使えますしね(笑)
普段から使っているからには今更なんですが、jQueryMobileはjQueryのライブラリを使用しますが、バージョンを合わせておかないとエラーが出ます。
jQueryの新しいのが出たから突っ込んでみたら動かなくなっちゃった。なんて失敗をしてたりするので念のため書いておきます。
CDNなので、このままコピペして使えると思います。
※ この記事は随時更新していきます。
以下コピペ用
jQuery Mobileの組み合わせ
jQuery Mobile 1.3.2
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
jQuery Mobile 1.2.1
<link rel="stylesheet" href="//code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" /> <script src="//code.jquery.com/jquery-1.8.3.min.js"></script> <script src="//code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.js">
jQuery Mobile 1.1.2
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.min.css" /> <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.min.js"></script>
jQuery Mobile 1.0.1
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
google CDNを使用するとき
バージョンに合わせて適宜「1.9.1」のアドレス部を変更する。
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- 投稿タグ
- javascript, jQuery, jQueryMobile, jQueryUI
最近のコメント