- 博客(6)
- 收藏
- 关注
原创 请求拦截
import axios from 'axios'const service = axios.create({ timeout: 30000})// 添加request拦截器service.interceptors.request.use(config => { return config}, error => { Promise.reject(error)})// 添加response拦截器service.interceptors.response.use( r
2020-09-14 16:31:40
463
原创 盒子模型理解
这里是对盒子模型的理解css盒子模型content内容padding填充border边框margin空白边css盒子模型content内容内容可以是文本,图片等多种类型属性:width height overflow 【1】hidden:溢出部分不可见【2】visible:溢出内容信息可见,只是被呈现在盒子外部【3】scroll:滚动条自动添加到盒子中,用户可以通过拉动滚动条显示内容信息【4】auto:由浏览器处理溢出部分padding填充1.填充内容和边框空间(文本内容和边框)2.属
2020-06-28 16:02:43
349
1
原创 Vue vscode 快捷生成.Vue模板
Vue vscode 快捷生成.Vue模板找到vue.json 添加以下代码测试方式:新建.vue文件,输入VUE 按下TAB ,可以生成以下为模板的代码块{ "Print to console": { "prefix": "vue", "body": [ "<!-- $1 -->", "&...
2020-03-25 15:08:15
615
原创 vue 父传子单向通信 props报错不可写问题
报错:问题出现原因就是props 单向数据流问题vue.esm.js?efeb:628 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed pr...
2020-02-25 14:40:13
493
原创 构建vue环境 (node.js webpack vue-cli)
1.安装node首先下载前端IDE vscode (官方网站)=>https://code.visualstudio.com/win +r 输入cmd ,像这样 ,对应出node版本号,安装成功2.安装数据源,切换淘宝镜像下载 nodejs (官方网站)http://nodejs.cn,安装好nodejs后已经包含了npm ,由于在国内使用npm是非常慢的,所以在这里我们推荐使用淘...
2020-02-23 15:02:47
200
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人