js里forEach和each的区别

forEach是js中的方法(针对数组);

each是jQuery中的方法(针对jQuery对象,即$());

posted @ 2020-09-12 10:37  云柯-  阅读(505)  评论(0编辑  收藏  举报