在处理ajax返回的json数组时错误的使用了
list.each(function(){ });
实际上当遍历json数组是应该使用
$.each(list,function(index,course){ });
Posted fanwenhao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了js报错 Uncaught TypeError: xxxx.each is not a function相关的知识,希望对你有一定的参考价值。
在处理ajax返回的json数组时错误的使用了
list.each(function(){ });
实际上当遍历json数组是应该使用
$.each(list,function(index,course){ });
以上是关于js报错 Uncaught TypeError: xxxx.each is not a function的主要内容,如果未能解决你的问题,请参考以下文章