摘要:
<el-input v-model="password" placeholder="密码" type="password" @keyup.enter.native="doLogin"></el-input> 监听回车事件需要添加.native即可; 阅读全文
摘要:
let s = new Set(); s .add("x") .add("y"); console.log(s); var a =[]; a.push(1,2,3,4,5,4,3,2,1); var user = new Set(a); console.log(user); 数组转set var a 阅读全文
摘要:
let map = new Map([ ["a","b"], ["c","d"] ]); for (let i of map.keys()){//循环map中的键名 console.log(i) } let map = new Map([ ["a","b"], ["c","d"] ]); for ( 阅读全文
摘要:
块级元素转换成弹性盒子:{display:flex} 行内元素转换成弹性盒子:{display:inline-flex} 1.flex-direction:用来确认主轴的方向 row(从左向右)相对于row-reverse(从右向左) column(从上向下)相对于column-reverse(从下 阅读全文