[英]'Uncaught TypeError: $.ajax is not a function' is thrown when running second time
我有一個 jquery 函數,它第一次運行得很好,但是當我第二次嘗試運行它時,它會拋出這個錯誤 -
Uncaught TypeError: $.ajax is not a function
這是我的功能
function myfunction(month, records) {
$.ajax({url: "/JustLarv/public/gMap/records/" + records, success: function(result){
Cookies.set('month', month);
$(".map").html(result);
}});
$.ajax({url: "/JustLarv/public/qlty_sor", success: function(res){
Cookies.set('month', month);
$(".qlty_sor_chart").html(res);
// $(".qlty_chart").html(res);
}});
}
就我而言,我在嵌套視圖或 html 中再次加載 jquery。 我刪除了該參考並工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.