摘要:
// 正则验证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
弥留残荷
阅读(682)
评论(0)
推荐(0)
|
摘要:
// 正则验证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
弥留残荷
阅读(682)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/xiaohuochai/p/7404928.html 》》》 Velocity.js的使用 前面的话 Velocity是一款优秀的JS动画库,完全可以作为jQuery的animate的替代品。需要动画功能时,使用Velocity是一个好选择。本文 阅读全文
posted @ 2019-08-08 09:42
弥留残荷
阅读(668)
评论(0)
推荐(0)
摘要:
《《《 》》》 在单页面里面,父子组件传值是比较常见的,react的父子组件传值,和vue差不多的思路,父组件向子组件传值,父通过初始state,子组件通过this.props进行接收就可以了;子组件向父组件传值需要绑定一个事件,然后事件是父组件传递过来的this.props.event来进行值的更 阅读全文
posted @ 2019-08-08 09:30
弥留残荷
阅读(1125)
评论(0)
推荐(0)
|