摘要: /specs-and-compare/:carId <keep-alive> <router-view :key="$route.fullPath" v-if="$route.meta.keepAlive" /> </keep-alive> this.$router.push({ path: "/s 阅读全文
posted @ 2021-09-23 16:31 果果1024 阅读(195) 评论(0) 推荐(0)
摘要: 1.async 函数中可能会有 await 表达式,async 函数执行时,如果遇到 await 就会先暂停执行 ,等到触发的异步操作完成后,恢复 async 函数的执行并返回解析值。 (await 关键字仅在 async function 中有效。如果在 async function 函数体外使用 阅读全文
posted @ 2021-09-23 11:00 果果1024 阅读(107) 评论(0) 推荐(0)
摘要: 1.绝对居中: .box { display: flex; width: 100%; height: 500px; background: #cccccc; justify-content: center;//主轴居中 align-items: center; //交叉轴居中 } .box div  阅读全文
posted @ 2021-09-23 10:52 果果1024 阅读(104) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> *{ margin:0;padding:0; } .container{ display: flex; heigh 阅读全文
posted @ 2021-09-23 10:35 果果1024 阅读(18) 评论(0) 推荐(0)