上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 1.创建store import { createStore } from 'redux'; import reducers from '../reducers/index'; export default createStore(reducers); 2.reducer(接受state和actio 阅读全文
posted @ 2021-09-24 11:21 果果1024 阅读(171) 评论(0) 推荐(0)
摘要: 1.父盒子设置text-align: center;后,盒子里面的 文字内容、行内元素、行内块元素、 都可以水平居中对齐;而块级元素一般是不可以水平居中的。 2. 未设置宽高+父盒子设置text-align: center;的块级元素可以水平居中设置了宽高+未设置margin:0 auto;的块级元 阅读全文
posted @ 2021-09-24 10:12 果果1024 阅读(98) 评论(0) 推荐(0)
摘要: /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)
摘要: https://www.cnblogs.com/Mrrabbit/p/7852792.html(vue打包之后生成一个配置文件修改接口) 阅读全文
posted @ 2020-12-01 15:18 果果1024 阅读(47) 评论(0) 推荐(0)
摘要: 右键打开 git bash here 执行命令 find . -name ".git" | xargs rm -rf 就清除了git版本控制信息 阅读全文
posted @ 2020-10-13 10:42 果果1024 阅读(939) 评论(0) 推荐(0)
摘要: 注意!!!如果用了封装组件的话,比如element,这个时候使用按键修饰符需要加上.native 比如: <el-input v-model="account" placeholder="请输入账号" @keyup.enter.native="search()"></el-input> 阅读全文
posted @ 2020-09-28 16:06 果果1024 阅读(465) 评论(0) 推荐(0)
摘要: 数据变化 -> 视图更新;视图交互变化(input) ->数据model <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div id="app"> <input type="te 阅读全文
posted @ 2020-04-09 10:01 果果1024 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页