摘要:
元素<div className="scroll" /> 样式 .scroll::-webkit-scrollbar { display: none; } 阅读全文
摘要:
/** * 初始化微信 JS-SDK * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html */ import { getWxSignature } from '@/services/index 阅读全文
摘要:
常见的前端渲染模式有三种,分别是csr/ssr/ssg CSR 客户端渲染 Client-Side Rendering 页面的渲染全部由浏览器完成,当用户访问一个页面链接时,服务端相应对应的html文件,下载完js、css图片等静态资源完成渲染。 一般的html只会有基本的骨架,类似如下的结构。所有 阅读全文
摘要:
import { useCallback, useEffect, useRef } from 'react'; export interface DebounceRefType { fn: Function; timer?: NodeJS.Timeout; } export type Debounc 阅读全文
摘要:
https://tinypng.com/cn/ 阅读全文
摘要:
样式: 实现代码 index.tsx import { Image } from '@tarojs/components'; import View from '@/components/GymComponents/GymView'; import { useState } from 'react' 阅读全文
摘要:
排查流程图 flowchart TB A --> B --> C --> D --> E subgraph A[认识问题] A1[收集信息] A2[确认问题] A3[复现问题] A4[影响范围] A1 --> A2 --> A3 --> A4 end subgraph B[诊断/确认问题] B1[检 阅读全文
摘要:
方法封装: /** * 获取cookie */ export function getCookie(sKey: string): string { if (!sKey) { return null; } return decodeURIComponent(document.cookie.replac 阅读全文
摘要:
定义: import { useCallback, useEffect, useRef } from 'react'; export interface DebounceRefType { fn: Function; timer?: NodeJS.Timeout; } export type Deb 阅读全文
摘要:
最近需求,要在b端展示上传的pdf文件。实现方式有很多,记录一下我们最常用的pdf.js //安装 "pdfjs-dist": "2.0.402" //引入 import * as pdfjs from 'pdfjs-dist' import * as pdfjsWorker from 'pdfjs 阅读全文