随笔分类 -  javascript

摘要:const formatTimes = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() co... 阅读全文
posted @ 2018-05-23 12:28 doublealoe 阅读(302) 评论(0) 推荐(0)
摘要:1. 使用 var tab1=new Tab({ etype:'onmou',//默认点击触发 autoplay:2000,//有时间值(按照事件自动播放)和false(不自动播放) invoke:3,//默认是第一项。 }); 2. 插件内容 1 2 ;(function(){ 3 functio 阅读全文
posted @ 2017-12-20 17:13 doublealoe 阅读(484) 评论(0) 推荐(0)
摘要:1.利用标记 var arr = [2,6,2,6,4,3,16];// arr = [2,6,4,3,16] function norepeat(arr){ var res = []; for(var i=0;i<arr.length;i++){ var flag = true; for(var 阅读全文
posted @ 2017-10-28 14:54 doublealoe 阅读(335) 评论(0) 推荐(0)
摘要:1、冒泡排序 2、选择排序 3.快速排序 4.数组的排序方法 sort()+比较函数 阅读全文
posted @ 2017-10-20 21:35 doublealoe 阅读(1289) 评论(0) 推荐(0)