04 2020 档案
摘要:字符串扩展 新的API ES6为字符串扩展了几个新的API: includes():返回布尔值,表示是否找到了参数字符串。 startsWith():返回布尔值,表示参数字符串是否在原字符串的头部。 endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。 map():接收一个函数,将
阅读全文
摘要:var d = new Date();var datetime=d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.g
阅读全文
摘要:var newDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(this.clickRow.weekDate)
阅读全文
摘要:this.test((res)=>{ console.log(res);//接受的回调参数 }) test(callback){ if(true){ callback("Y"); }else{ callback("N") } }
阅读全文
摘要:/** * 获取本周、本季度、本月、上月的开始日期、结束日期 */ var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var nowMo
阅读全文
摘要:第一种: <hr style=" height:2px;border:none;border-top:2px dotted #185598;" /> 园点虚线 height:2px;是hr的高度 border:none;是没有边框 border-top:2px dotted #185598;是设置横
阅读全文

浙公网安备 33010602011771号