摘要:// 正则验证function regxVal (data, type) { const newData = data.replace(/\s+/g, '') let reg = '' switch (type) { case 'tel': // 手机号码 reg = /^1[3|4|5|7|8][
阅读全文
随笔分类 - js
摘要:// 正则验证function regxVal (data, type) { const newData = data.replace(/\s+/g, '') let reg = '' switch (type) { case 'tel': // 手机号码 reg = /^1[3|4|5|7|8][
阅读全文
摘要:转自:https://www.cnblogs.com/xiaohuochai/p/7404928.html 》》》 Velocity.js的使用 前面的话 Velocity是一款优秀的JS动画库,完全可以作为jQuery的animate的替代品。需要动画功能时,使用Velocity是一个好选择。本文
阅读全文
摘要:{ StatisticsPropertyAreaServer.list({"id":this.state.selectedQuestionnaireName.id}, (json,index) => { //updateRows(json.success); //console.log('josn',json.su...
阅读全文
摘要:let buildingArr = [];let data = null;let data2 = null;let data3 = null;BuildingServer.building_details_empty({buildingId: params.buildingId}, (json) => { data2 = json.success;});BuildingServer.bui...
阅读全文
摘要:componentDidMount(){ //渲染完成后触发 console.log(" 初始化完成触发 "); window.addEventListener('scroll', this.scroll.bind(this));};componentWillUnmount(){ console.l
阅读全文
摘要:var lastDay= new Date('2018','05',0);var year = lastDay.getFullYear();var month = lastDay.getMonth() + 1;month = month < 10 ? '0'+ month : month;var d
阅读全文
摘要:调用:this.minDate();2019-04-30 minDate =()=>{ //日期加一天 let date = new Date(this.state.date1); date.setDate(date.getDate() + 1); let month = date.getMonth
阅读全文
摘要:方法一:调用:common.dateTurnTime(record.createTime); common.dateTurnTime= (list,path = 'YYYY-MM-DD') => { // 时间戳转时间 let time = parseInt(list); let date = ne
阅读全文
摘要:document.getElementById("ch_title").scrollIntoView();使用了那么多描点,感觉这个是最好用的。
阅读全文
|