Javascript: Difference between revisions

Jump to navigation Jump to search
2 bytes added ,  20 June 2016
Line 108: Line 108:
//If the javascript library hosted at CDN was failed to connect, it will switch to local javascript file automatically.
//If the javascript library hosted at CDN was failed to connect, it will switch to local javascript file automatically.


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<script>!window.jQuery && document.write('<script src="local-js-path/jquery-1.8.3.min.js"><\/script>');</script>
<script>!window.jQuery && document.write('<script src="local-js-path/jquery-1.12.4.min.js"><\/script>');</script>


<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript"></script>

Navigation menu