摘要:
1.通过state传参(HashRouter会丢失,BrowserRouter不会丢失) 传参页面 import { useNavigate } from "react-router-dom"; const navigate = useNavigate() navigate("/home",{sta 阅读全文
摘要:
文件目录 index.js import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedete 阅读全文
摘要:
// 轮询接口 import { useCallback, useRef, useEffect } from "react"; const sleep = (time) => { return new Promise((resolve) => setTimeout(resolve, time)); 阅读全文
摘要:
// 引入ali-oss(没有用到) import axios from "@/plugins/axios"; import moment from "moment"; let OSS = require("ali-oss"); /** * [accessKeyId] {String}:通过阿里云控 阅读全文
摘要:
import axios from "axios"; import { Modal, message } from "antd"; import i18next from "i18next"; const { CancelToken } = axios; const cancelTokenArr = 阅读全文
摘要:
axios .post("****", {}, { onUploadProgress: (p) => { p.loaded != p.total && setLoadNum(parseInt(100 * (p.loaded / p.total))); }, onDownloadProgress: ( 阅读全文
摘要:
npm install -g caniuse-cmd caniuse --help 阅读全文
摘要:
实现函数: 1、输入n个数组,返回交集。如输入 [1,2,3,4,5] [2,3,5] [1,3,5] 返回 [3,5] 2、仿Object.assign的功能 3、仿Array.map的功能 4、判断字符串A为有效的中国居民身份证号码 实现样式: 1、鼠标滑入标题后,子菜单从标题下方滑出 2、元素 阅读全文
摘要:
上传文件: scp D:\qzctwh\qz-service\target root@122.36.70.78:/qzc 上传文件夹: scp -r D:\qzctwh\qz-client\dist root@122.36.70.78:/qzc 阅读全文
摘要:
/** * [dateAddDays 从某个日期增加n天后的日期] * @param {[string]} dateStr [日期字符串] * @param {[int]} dayCount [增加的天数] * @return {[string]}[增加n天后的日期字符串] */ function 阅读全文