自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 uniapp网络请求封装

uniapp网络请求封装 function service(options) { let server_url = 'https://netease-cloud-music-api-chi-henna.vercel.app'; //请求地址 return new Promise((resolved, rejected) => { uni.request({ url: server_url + options.url, method: options.method, data:

2021-07-20 15:45:10 119

原创 vue防抖和节流

防抖 多次点击只执行最后一次 timer: null, clearTimeout(this.timer); this.timer = setTimeout(() => { //要执行的操作 }, 300); 节流 last: 0, now: 0 this.now = +new Date() if (this.now - this.last >= 500) { this.last = this.now } ...

2021-04-30 10:04:48 54

原创 axios模块化

安装 npm install axios utils/https.js import axios from "axios"; //导入axios export const instance = axios.create({//创建axios实例,并抛出 baseURL: "http://127.0.0.1:7001",//后端地址 timeout: 5000, }); instance.interceptors.request.use((config) => {//请求拦截 ret

2021-04-20 10:36:49 84

原创 vuex模块化

store/index.js import Vue from ‘vue’ import Vuex from ‘vuex’ import getters from ‘./getters’ Vue.use(Vuex) const mod = require.context(’./modules’, true, /.jsKaTeX parse error: Got function '\.' with no arguments as superscript at position 107: …Path.repla

2021-04-20 09:44:32 91

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除