JQuery.Validate CDN fallback
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: A bit of a follow on from this question: Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail So I can detect if the JQuery CDN is down and allow for this: <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script type="text/javascript"> if (typeof jQuery == 'undefined') { document.write(unescape("%3Cscript src='/Script/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E")); } </script> How do I do the same for jquery.validate loaded as: <script type="text