html css 记录1

  • Post author:
  • Post category:其他


1、substring()截取字符串,从0开始数,有一个参数取至结尾,两个参数取至结尾-1

2、$.each(data,function(index,item){})

遍历,index是索引,item是值

data.map(function(item,index)) {}

var a = $.map(data,function(item,index)

$.map()方法可以在遍历数组或对象成员的同时,经过回调函数的调用,然后转换到另一个新的数组中

3、split  分割字符串,split(“”) 全部分割  sopit(” “) 有空白分割 split(“-“) 有-分割

4、empty() 方法从被选元素移除所有内容,包括所有文本和子节点

5、数组push

6、

7、li:not(“.aaa)  选择列表中不是class=’aaa’的 列

li:eq(1)   选择列表中第2行的列

8、sibling

posted on

2018-12-24 16:46


陆人葭

阅读(



) 评论(



)

编辑

收藏

转载于:https://www.cnblogs.com/whomlu/p/10169450.html