- 博客(8)
- 收藏
- 关注
原创 settings.json
{ "commentTranslate.targetLanguage": "zh-CN", "px-to-rem.number-of-decimals-digits": 6, "px-to-rem.px-per-rem": 75, "editor.tabSize": 2, "javascript.implicitProjectConfig.experimentalDecorators": true, "files.associations": {
2020-10-13 21:00:50 167
原创 封装axios
import axios from 'axios' let baseURL = 'http://localhost:8090' const instance = axios.create({ baseURL: baseURL, timeout:7000, headers:{} }) //请求拦截器 instance.interceptors.request.use(function(config){ config.headers.Authorization = local
2020-09-26 22:43:46 118
原创 跨域问题
1、什么跨域? 跨域指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器对javascript施加的安全限制。 同源策略:是指协议、域名、端口都要相同,只要三者有一个不同就会产生跨域。 例如:a页面想获取b页面资源,如果a、b页面的协议、域名、端口、子域名有不同,所进行的访问行为都是跨域的,而浏览器为了安全问题一般都限制了跨域访问,也就是不允许跨域请求资源。注意:跨域限制访问,事实上是浏览器的限制策略,理解这一点很重要。 2、三种方式解决跨域问题 JSONP(需前后端配合来完成)
2020-08-03 16:30:28 110
原创 Git基础操作
1、提交 git add . git commit -m "注释内容" git push 2、分支创建 git branch 分支名 git checkout 分支名 3、分支合并 把xia合并至master git checkout master git merge xia git push 把master合并至xia git checkout xia git merge master git push 4、版本回退,回退到指定的版本 gi
2020-08-03 16:25:36 101
原创 Date对象
Date对象表示的是日期和时间 1.定义Date对象使用构造函数法: var d = new Date(); 2.获取Date对象上的年份: 首先要获取日期,即:var d = new Date(); 然后使用 d.getFullyear();获取日期对象上的年份 ...
2020-03-21 23:32:17 189
原创 css动画属性有哪些
动画属性:animation 特点:不需要进行触发,只要调用关键帧就行了!! 属性: 1、animation-name:动画的名称; 2、animation-duration:动画持续的时间; 3、animation-timing-function:动画的类型; 4、animation-delay:动画延迟的时间; 5、animation-iteration-count:动画的运动次数;(默认运动...
2020-02-29 11:00:31 673
原创 css元素居中的方式有哪些
一.文本在父元素里居中: a.左右居中:text-align:center; b.上下居中:line-height:“父元素的高度”; 二.子元素在父元素里居中: a.左右居中: 1.margin: 0 auto; 2.当子元素是inline-block时,给父元素添加 text-align:center; b.上下居中步骤如下: 1 : 添加标尺 在子元素的后面添加同级元素span 并且...
2020-02-22 13:28:30 147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人