摘要: 2.1 flex-direction: row(默认值):主轴为水平方向,起点在左端。 row-reverse:主轴为水平方向,起点在右端。 column:主轴为垂直方向,起点在上沿。 column-reverse:主轴为垂直方向,起点在下沿。 2.2 flex-wrap: nowrap(默认):不 阅读全文
posted @ 2021-06-16 15:28 铁打的代码流水的bug 阅读(48) 评论(0) 推荐(0)
摘要: 函数传参和默认参数的区别,传参如果传的是引用地址,则会对这个引用产生影响,但是如果是默认参数,则是创建了一个新对象,对原引用没有影响。 const person = { name: "Lydia", age: 21 } const changeAge = (x = { ...person }) => 阅读全文
posted @ 2021-06-16 11:23 铁打的代码流水的bug 阅读(94) 评论(0) 推荐(0)
摘要: js 基础 for in 和 for of的区别详解 const obj = { a: 1, b: 2, c: 3 } for (let i in obj) { console.log(i) // a // b // c } for (let i of obj) { console.log(i) / 阅读全文
posted @ 2021-06-16 10:09 铁打的代码流水的bug 阅读(84) 评论(0) 推荐(0)