归档: 2018/6
0
Jquery回顾(1)
1.循环遍历:123$('obj').each(function(index,ele){ //函数体}) 有趣的是js中的循环遍历方法比如forEach()的参数为① ele ② index,而jq中循环遍历方法比如each()、filter()、not()的参数为① index ② ele 刚好调换 2.添加css样式1$('obj&apos