从上面一段代码可知:
- 数组命名: var arr= { }
- $("table").find("td.checked").map(function) {} [选择器选择 table中td的class="checked"的元素,用map的方法进行遍历]
- map的方法:
-
getAttribute方法与attr的方法具体例子:
- https://www.zybuluo.com/Secretmm/note/429417#js的getattribute-setattribute与jquery的attr
- var data = this.getAttribute("data-week").split('.');
则data变为