Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このスレッドに従って、GoogleのCDNが失敗した場合に、フォールバックしてローカルでjqueryを提供するためにを使用しています。
CDNバージョンが失敗した場合にローカルjquerytoolsにフォールバックする方法について誰かがアドバイスを持っていますか?Flowplayerフォーラムで議論されているFlowplayerにも同様の手法がありますが、jquerytoolsでそれを行う方法がわかりません。
ヒントをありがとう。
次のように、jQuery ツールから flashembed オブジェクトを使用できます。
<script src="http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js"></script> <script>window.flashembed || document.write('<script src="js/jquery.tools.min.js"><\/script>')</script>