jQuery基础方法:each(),map(),index(),is()
摘要:
jQuery的each()方法和forEach()的区别: each()返回调用自身的jQuery对象,可用于链式调用 $('div').each(function(idx){ //找到所有div元素,然后遍历它们 $('this').prepend(idx + ':'); //prepend()这 阅读全文
posted @ 2019-03-20 15:01 阿林十六 阅读(641) 评论(0) 推荐(0)
浙公网安备 33010602011771号