自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

原创 判断是不是点击元素内部

document.addEventListener("click", e => { if (this.$refs.colorBox) { let isSelf = this.$refs.colorBox.contains(e.target); if (!isSelf) { this.colorShow = false; } }})

2022-05-30 11:20:44 383

原创 导出excel表格

<template> <div> <button @click="exportExcel">导出</button> </div></template><script setup> const list = [ {name:'zs', age:123}, {name:'ls', age:99, sex:'1'}, {name:'ls222', sex:'1'}, ] .

2022-05-20 00:00:20 123

原创 vue中在二次封装引入store报错

axios 封装中 引入 store 报错

2021-12-15 23:06:46 1428

原创 uni-app app和微信小程序获取微信授权

openId app 和 微信小程序 获取授权

2021-12-12 22:05:37 435

原创 Vue 关闭eslint 严格模式

找到 .eslintrc.js 文件

2021-11-24 21:28:22 780

原创 解决 vue-router 中导航菜单连续点击同一个导航时 控制台报错

解决,在router index.js 文件添加// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err)}...

2021-11-24 17:11:18 625

原创 使用 nodeJs 简单爬取页面数据

const fs = require("fs")// npm install axios cheerioconst cheerio = require('cheerio')const axios = require("axios").defaultconst books = []axios.get('https://www.hongxiu.com/rank/hotsales').then(res=>{ // 可以使用 jq 语法 操作页面元素 // 把 HTML 告诉你.

2021-11-24 15:11:25 929

原创 axios 的二次封装

aixos 的 二次封装 和 mock 的简单使用

2021-11-23 23:11:31 285

空空如也

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

TA关注的人

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