JQuery issue “TypeError: $.getJSON is not a function”

后端 未结 3 1860
生来不讨喜
生来不讨喜 2020-12-03 06:36

I\'ve got this piece of code:

$(document).ready(function () {
    $.getJSON(\'http://localhost:5000/\', function (response) {
        console.log(response);
         


        
3条回答
  •  星月不相逢
    2020-12-03 07:09

    function cinta(){
    $.getJSON('http://localhost:5000/', function (response) {
            console.log(response);
        });
    }
    cinta();
    $(document).ready(function () {
      console.log('yesss');  
    });
    

    This work for me in python flask

提交回复
热议问题