弥留残荷

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  js

摘要:// 正则验证function regxVal (data, type) { const newData = data.replace(/\s+/g, '') let reg = '' switch (type) { case 'tel': // 手机号码 reg = /^1[3|4|5|7|8][ 阅读全文
posted @ 2019-08-08 10:28 弥留残荷 阅读(650) 评论(0) 推荐(0)

摘要:转自:https://www.cnblogs.com/xiaohuochai/p/7404928.html 》》》 Velocity.js的使用 前面的话 Velocity是一款优秀的JS动画库,完全可以作为jQuery的animate的替代品。需要动画功能时,使用Velocity是一个好选择。本文 阅读全文
posted @ 2019-08-08 09:42 弥留残荷 阅读(649) 评论(0) 推荐(0)

摘要:{ StatisticsPropertyAreaServer.list({"id":this.state.selectedQuestionnaireName.id}, (json,index) => { //updateRows(json.success); //console.log('josn',json.su... 阅读全文
posted @ 2019-06-04 11:54 弥留残荷 阅读(296) 评论(0) 推荐(0)

摘要:let buildingArr = [];let data = null;let data2 = null;let data3 = null;BuildingServer.building_details_empty({buildingId: params.buildingId}, (json) => { data2 = json.success;});BuildingServer.bui... 阅读全文
posted @ 2019-06-04 11:29 弥留残荷 阅读(273) 评论(0) 推荐(0)

摘要:componentDidMount(){ //渲染完成后触发 console.log(" 初始化完成触发 "); window.addEventListener('scroll', this.scroll.bind(this));};componentWillUnmount(){ console.l 阅读全文
posted @ 2019-05-05 14:43 弥留残荷 阅读(1873) 评论(0) 推荐(0)

摘要:var lastDay= new Date('2018','05',0);var year = lastDay.getFullYear();var month = lastDay.getMonth() + 1;month = month < 10 ? '0'+ month : month;var d 阅读全文
posted @ 2019-04-29 10:02 弥留残荷 阅读(320) 评论(0) 推荐(0)

摘要:调用:this.minDate();2019-04-30 minDate =()=>{ //日期加一天 let date = new Date(this.state.date1); date.setDate(date.getDate() + 1); let month = date.getMonth 阅读全文
posted @ 2019-04-24 19:56 弥留残荷 阅读(1068) 评论(0) 推荐(0)

摘要:方法一:调用:common.dateTurnTime(record.createTime); common.dateTurnTime= (list,path = 'YYYY-MM-DD') => { // 时间戳转时间 let time = parseInt(list); let date = ne 阅读全文
posted @ 2019-04-18 10:02 弥留残荷 阅读(1105) 评论(0) 推荐(0)

摘要:document.getElementById("ch_title").scrollIntoView();使用了那么多描点,感觉这个是最好用的。 阅读全文
posted @ 2018-10-18 10:38 弥留残荷 阅读(192) 评论(0) 推荐(0)