Using the below line of code, like most websites do I wonder, is it possible to have a backup alternative for this? For example, if googleapis.com~ is down, use this other script src instead?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text开发者_StackOverflow中文版/javascript"></script>
Thanks in advance,
Anders
Try something like this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script>if(typeof jQuery=="undefined"){document.write(unescape("%3Cscript src='/Scripts/jquery-1.4.3.min.js' type='text/javascript'%3E%3C/script%3E"));}</script>
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论