Live2D
摘要: 1. 使用代理 https://locals.wapa.taobao.com https://locals.wapa.taobao.com:3333 如上配置,将https://locals.wapa.taobao.com请求转发至https://locals.wapa.taobao.com:333 阅读全文
posted @ 2025-10-13 15:23 喻佳文 阅读(3) 评论(0) 推荐(0)
摘要: 1. 获取服务器目录信息 //getOssXXXX 获取服务器目录信息Api//fileType 文件类格式//ossAuthority 文件属性 1公开 2 私有 const policyResult: any = await getOssXXXX({ fileType: 'png', ossAu 阅读全文
posted @ 2025-08-07 11:35 喻佳文 阅读(19) 评论(0) 推荐(0)
摘要: 正则判断 // 身份证校验 export function checkIdCard(value: string) { console.log('checkIdCard', value); if (!value) return false; const ID = value.toUpperCase() 阅读全文
posted @ 2025-07-28 15:43 喻佳文 阅读(20) 评论(0) 推荐(0)
摘要: 设置meta标签属性 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> 这个viewpor 阅读全文
posted @ 2025-07-17 12:21 喻佳文 阅读(52) 评论(0) 推荐(0)
摘要: CSS 自定义属性 tsx文件定义属性 import React from 'react'; import './Component.scss'; const MyComponent: React.FC = () => { const primaryColor = '#3498db'; const 阅读全文
posted @ 2025-07-09 18:28 喻佳文 阅读(7) 评论(0) 推荐(0)
摘要: 第一步:基础view import { View as TaroView } from '@tarojs/components'; import { ViewProps } from '@tarojs/components/types/View'; import dayjs from 'dayjs' 阅读全文
posted @ 2025-03-13 15:59 喻佳文 阅读(20) 评论(0) 推荐(0)
摘要: 元素<div className="scroll" /> 样式 .scroll::-webkit-scrollbar { display: none; } 阅读全文
posted @ 2024-12-26 14:53 喻佳文 阅读(7) 评论(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 喻佳文 阅读(43) 评论(0) 推荐(0)
摘要: 常见的前端渲染模式有三种,分别是csr/ssr/ssg CSR 客户端渲染 Client-Side Rendering 页面的渲染全部由浏览器完成,当用户访问一个页面链接时,服务端相应对应的html文件,下载完js、css图片等静态资源完成渲染。 一般的html只会有基本的骨架,类似如下的结构。所有 阅读全文
posted @ 2024-12-05 17:46 喻佳文 阅读(211) 评论(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 喻佳文 阅读(59) 评论(0) 推荐(0)