- 博客(2)
- 收藏
- 关注
原创 js实现字符串中去除空格
let str = 'A H F ADS FFF' //需要去除空格的字符串 let str_split = str.split(' ') //用空格进行切割得到[ 'A', 'H', 'F', 'ADS', 'FFF' ] let res = str_split.join('') //所有元素转换为一个字符串 console.log(res) //AHFADSFFF
2022-03-01 09:32:13
452
1
原创 vue,react中const {XXX } =this 的作用
const { maxScale, scale, scaleStep } = this 这个是es6的写法 最终等价于 const maxScale = this.maxScale const scale = this.scale const scaleStep = this.scale
2022-02-24 16:08:14
662
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅