現在localhostでテストしているWebプロジェクトにjqueryを使用しようとしています。私base.html
はこのリンクでGoogleサービスを使用しようとしています
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">
レンダリングされたサイトで、有効なマークアップを取得します。
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").toggle();
});
</script>
</head>
しかし、機能は動作しません。開発中にjqueryを自分でホストする必要がありますか?