一、获取时间对象
小括号为空,当前时间。里面加东西获得指定时间
月份记得+1.console.log(date.geyMonth()+1)
星期日是0
tolocalTimeString 是获得秒时分
二、获取时间戳
第三种方式只能返回当前时间戳
三、查找DOM节点
获取父节点
四、增加节点
- 创建节点
const div = document.createlement('div)
对象.appendchild(li)
对象.insertbefore(要插入的元素,在哪个元素之前)
五、克隆和删除节点
六、M端事件 移动端事件
1.触屏事件
七、swipper 插件
八、实例
注意tbody是个标签,获取不需要加·
注意name属性的选择用[]