1. 程式人生 > >js報錯 Uncaught TypeError: xxxx.each is not a function

js報錯 Uncaught TypeError: xxxx.each is not a function

each err typeerror span xxx list 報錯 pan 使用

在處理ajax返回的json數組時錯誤的使用了

list.each(function(){
            
        });

實際上當遍歷json數組是應該使用

    $.each(list,function(index,course){
        
    });

js報錯 Uncaught TypeError: xxxx.each is not a function