随笔分类 -  前端

摘要:第一步: axios请求头设置 import axios from 'axios' import { store } from './store' // 引入vuex axios.interceptors.request.use( config => { config.cancelToken = n 阅读全文
posted @ 2020-08-13 17:12 樱风凛 阅读(1581) 评论(0) 推荐(0)
摘要:# 安装nrm并设置NPM的淘宝镜像 npm i -g nrm nrm use taobao # 设置依赖安装过程中内部模块下载Node的淘宝镜像 npm config set disturl https://npm.taobao.org/mirrors/node/ # 设置常用模块的淘宝镜像 np 阅读全文
posted @ 2020-07-30 14:17 樱风凛 阅读(860) 评论(0) 推荐(0)
摘要:安装eslint插件 然后在settings.json加入下面配置 阅读全文
posted @ 2020-01-08 17:51 樱风凛 阅读(4065) 评论(0) 推荐(0)
摘要:左侧固定右侧自适应 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta 阅读全文
posted @ 2019-09-02 19:41 樱风凛 阅读(1632) 评论(0) 推荐(0)
摘要:``` / 对封装好的ajax请求进行调用 / ajax({ url:"", //请求地址 type:'GET', //请求方式 data:{name:'zhangsan',age :'23',email:'2372734044@qq.com'}, //请求参数 dataType:"json", / 阅读全文
posted @ 2019-03-18 14:18 樱风凛 阅读(2601) 评论(0) 推荐(1)
摘要:1、不跨域 iframe的页面直接修改包裹着它的iframe的高度就行 2、跨域 用postMessage https://developer.mozilla.org/zh CN/docs/Web/API/Window/postMessage 下面是demo 阅读全文
posted @ 2019-01-24 17:10 樱风凛 阅读(189) 评论(0) 推荐(0)
摘要:图解CSS3 Flexbox属性 关于align-items和align-content的区别和使用场景 阅读全文
posted @ 2017-05-23 19:50 樱风凛 阅读(137) 评论(0) 推荐(0)
摘要:DTD已声明 IE document.documentElement.scrollHeight 浏览器所有内容高度 ,document.body.scrollHeight 浏览器所有内容高度 document.documentElement.scrollTop 浏览器滚动部分高度,document. 阅读全文
posted @ 2016-06-04 18:38 樱风凛 阅读(177) 评论(0) 推荐(0)
摘要:"使用border做三角形" "纯CSS写三角形 border法" http://codepen.io/fazero/pen/reEeda 阅读全文
posted @ 2016-05-19 17:03 樱风凛 阅读(150) 评论(0) 推荐(0)
摘要:http://www.jb51.net/article/35669.htmhttp://blog.csdn.net/mosliang/article/details/6760028 阅读全文
posted @ 2015-12-09 12:09 樱风凛 阅读(96) 评论(0) 推荐(0)