上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 环境 win10 64bit + macOS Big Sur 安装 下载ShareMouse.dmg,双击打开 拖进资源管理器进行安装 安装后打开安全性与隐私设置,点击这里输入密码开锁 添加"完全访问磁盘访问权限" 添加"辅助功能"权限 MAC设置 打开sharemouse设置,在clients 将 阅读全文
posted @ 2022-06-25 14:39 KevinTseng 阅读(1837) 评论(0) 推荐(0) 编辑
摘要: 环境:macos 11.0.1 官方教程 https://reactnative.cn/docs/environment-setup 1. nrm use taobao 2. 安装Homebrew、XCode(Command Line Tools) 3. brew install watchman 阅读全文
posted @ 2022-02-20 13:26 KevinTseng 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 打开VSCode设置 { "editor.fontLigatures": true, "editor.fontFamily": "Fira Code Light , Consolas, 'Courier New', monospace", "editor.maxTokenizationLineLen 阅读全文
posted @ 2022-01-05 09:33 KevinTseng 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 功能 将日期时间转换为指定格式,如:YYYY-mm-dd HH:MM 表示 2021-11-02 15:00 方法 /** * 日期格式转换 * @param millisecond 毫秒 * @param template 模板(可选) * @example formatDate(new Date 阅读全文
posted @ 2021-11-02 14:45 KevinTseng 阅读(2549) 评论(0) 推荐(0) 编辑
摘要: // 联合类型 let connect: string | number; connect = "Tom"; connect = "13500000000"; // keyof 提取一个类型的属性名 作为联合类型 interface PersonModal { name: string; age: 阅读全文
posted @ 2021-10-26 11:06 KevinTseng 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 效果预览 实现方法 (less) .layer-item-tip { position: absolute; left: 22px; top: 89px; padding: 6px; width: 232px; color: #F28645; text-align: left; line-heigh 阅读全文
posted @ 2021-09-02 15:51 KevinTseng 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 目录 React Swiper轮播图(一) React Swiper轮播图(二) 需求 实现React可切换轮播图 效果预览 使用库 swiper官网 https://swiperjs.com/react npm i swiper@6.5.0 --save 实现方法 /** 导航 */ import 阅读全文
posted @ 2021-08-27 14:45 KevinTseng 阅读(639) 评论(0) 推荐(1) 编辑
摘要: 方案 // flex布局 .flex_func(@justify-content: flex-start, @align-items: center, @flex-direction: row, @flex-wrap: nowrap) { display: flex; justify-content 阅读全文
posted @ 2021-07-31 13:47 KevinTseng 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Reac中使用Context共享数据时,可以使用高阶组件做一个封装,方便页面使用 方式一:使用高阶组件 1.在App.js中添加状态共享Provider import Home from './page/Home' import {Provider, Context} from './AppCont 阅读全文
posted @ 2021-07-04 20:31 KevinTseng 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 描述 使用Taro将本地图片转成base64格式 尝试一 (真机提示有误) 使用Taro.chooseImage获取图片路径 然后使用下面的方法转成base64,但发现真机调试时会提示“接口请求失败” 模拟器获取的图片path是"http://xxx",真机获取的图片path是"wxfile://x 阅读全文
posted @ 2021-04-30 16:55 KevinTseng 阅读(1049) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页