Home >Web Front-end >JS Tutorial >JQuery online reference and test whether the reference is successful_jquery
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> // 测试引用是否成功 $(document).ready(function(e) { alert('test!'); }); </script> Google 的 CDN <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script> Microsoft 的 CDN <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js"></script>