摘要:
在main.js中 import request from '@/utils/request' import { getToken, setToken, removeToken, setFamily, getFamily } from '@/utils/auth' //挂载全局方法; app.con
阅读全文
posted @ 2022-08-23 15:38
dandanyajin
阅读(698)
推荐(0)
摘要:
在main.js文件中 import '@babel/polyfill' // import 'core-js/stable'; // import 'regenerator-runtime/runtime'; import Vue from 'vue' import App from './App
阅读全文
posted @ 2022-08-23 14:34
dandanyajin
阅读(1020)
推荐(0)
摘要:
width:inherit:继承父级的宽度。 与width:100%不同点:子级相对定位,父级没有绝对定位时,width:100%就会取再上层body的宽度;而width:inherit;会继承父级宽度。
阅读全文
posted @ 2022-08-17 14:40
dandanyajin
阅读(397)
推荐(0)
摘要:
首先npm install vuex --save引入vuex src/store/index.js import { createStore } from 'vuex' import getters from './getters' import app from "./modules/app"
阅读全文
posted @ 2022-08-02 17:08
dandanyajin
阅读(65)
推荐(0)
摘要:
export const deepClone = (source)=>{ if (!source && typeof source !== 'object') { throw new Error('error arguments', 'deepClone') } const targetObj =
阅读全文
posted @ 2022-07-28 14:05
dandanyajin
阅读(11)
推荐(0)
摘要:
1 mounted() { 2 // 监听窗口大小改变,this.isScreenFull的值为是否全屏,若是则true,反之false 3 window.onresize = () => { 4 this.isScreenFull = document.fullscreenElement || d
阅读全文
posted @ 2022-07-27 10:52
dandanyajin
阅读(808)
推荐(0)
摘要:
当数据超过 Number.MAX_SAFE_INTEGER (2 ^ 53 - 1) 时的计算都是不精确的 例如: Math.pow(2, 53) Math.pow(2, 53) + 1 // true 这个时候就可以使用 BigInt() BigInt(Math.pow(2, 53)) BigIn
阅读全文
posted @ 2022-07-26 11:38
dandanyajin
阅读(130)
推荐(0)
摘要:
1 const information = { 2 3 name: "花花", 4 age: "32" 5 6 } 1 // 获取对象中所有key 2 Object.keys(information) //["name","age"] 不包含原型链 3 Object.getOwnPropertyNa
阅读全文
posted @ 2022-07-26 11:14
dandanyajin
阅读(20)
推荐(0)
摘要:
1、文件地址栏输入cmd,然后回车键,打开cmd命令窗口 2、输入命令 :rmdir 输出文件地址 /s /q
阅读全文
posted @ 2022-07-25 10:06
dandanyajin
阅读(620)
推荐(0)
摘要:
在全局设置一个类名 ,谁用谁加这个类名 .specialScrollBar{ // /滚动条样式/ ::-webkit-scrollbar {///滚动条整体样式/ width: 100%; ///高宽分别对应横竖滚动条的尺寸/ height: 10px; } ::-webkit-scrollbar
阅读全文
posted @ 2022-07-09 16:59
dandanyajin
阅读(73)
推荐(0)