JQuery: $.get は関数ではありません 質問する

JQuery: $.get は関数ではありません 質問する

jQuery で非常に基本的な操作をするときに問題が発生しています。具体的に何が間違っているのか教えていただけますか?

以下のコードを実行すると、関数 $.get が欠落しているようです (getJSON なども欠落しています)。ただし、$ 自体と他の関数は存在するので、JQuery が読み込まれていることがわかります。

google.load("jquery", "1.3.2");

function _validate(form, rules_file) {
   $.get('/validation_rules.json',function(data) {
     alert("hello")
   })
} 

どのようなアイデアでも大歓迎です。

ありがとう、ロブ

編集: ここにいくつかの追加情報があります:

  <script src="http://www.google.com/jsapi"></script>
  <script>
    google.load("prototype", "1.6");
    google.load("scriptaculous", "1.8");
    google.load("jquery", "1.3.2");
  </script>
  <script>
    jQuery.noConflict(); // prevent conflicts with prototype
  </script>
  <script src="/livepipe/src/livepipe.js"
          type="text/javascript"></script>
  <script src="/livepipe/src/window.js"
          type="text/javascript"></script>
  <script src="/livepipe/src/tabs.js"
          type="text/javascript"></script>
  <script src="/jquery.maskedinput-1.2.2.js"
         type="text/javascript"></script>

ベストアンサー1

jQuery の SLIM バージョンを使用する場合にも、同じことが起こります。

<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>

私にくれた

>jQuery.get
:undefined
>jQuery.get()
:VM7130:1 Uncaught TypeError: jQuery.get is not a function
    at <anonymous>:1:8

同じライブラリをロードする際に、スリムオプション

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

うまく機能する

jQuery.get():オブジェクト{readyState: 1}

おすすめ記事