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