上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 需求描述 实现PC端吸顶导航 实现分析 先采用absolute绝对定位 滚动超过锚点导航时,修改该导航定位为fixed 效果预览 实现方法 /** 锚点导航*/ import React from "react"; import styles from "./index.less"; import 阅读全文
posted @ 2021-03-30 17:20 KevinTseng 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 问题描述 有些手机看到的1px线条比较粗 原因分析 大部分手机设备像素比DPR是1,所以CSS的1px显示出的物理像素为1px 也有采用Retina屏幕的手机,设备像素比DPR是2或3。所以CSS里的1px映射到物理像素上时,会变成2px或3px 解决方案 less版 // ** 1px线条 .bo 阅读全文
posted @ 2021-03-29 17:11 KevinTseng 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 需求 实现React轮播图 使用库 swiper官网 https://swiperjs.com/react 实现方法 /** 组件:图片轮播*/ import React, { Component } from "react"; import SwiperCore, { Navigation, Pa 阅读全文
posted @ 2021-03-26 17:23 KevinTseng 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: win10 64bit 先安装虚拟机VMWare https://www.cnblogs.com/KevinTseng/p/14479562.html 打开任务管理器,右键关闭所有VM相关服务 下载unlocker(解锁虚拟机安装mac功能) 链接:https://pan.baidu.com/s/1 阅读全文
posted @ 2021-03-04 14:40 KevinTseng 阅读(317) 评论(0) 推荐(0) 编辑
摘要: win10 64bit vmware15.5 https://download3.vmware.com/software/wkst/file/VMware-workstation-full-15.5.1-15018445.exe 修改安装路径到非C盘 输入序列号 阅读全文
posted @ 2021-03-04 14:29 KevinTseng 阅读(440) 评论(0) 推荐(0) 编辑
摘要: win10 64bit 官方教程 https://www.react-native.cn/docs/environment-setup 环境搭建 《ReactNative Windows环境安装JDK》 https://www.cnblogs.com/KevinTseng/p/14469997.ht 阅读全文
posted @ 2021-03-03 10:37 KevinTseng 阅读(82) 评论(0) 推荐(0) 编辑
摘要: win10 64bit 官方教程 https://www.react-native.cn/docs/environment-setup 先安装JDK https://www.cnblogs.com/KevinTseng/p/14469997.html 安装是选中custom自定义 安装Android 阅读全文
posted @ 2021-03-03 10:19 KevinTseng 阅读(371) 评论(0) 推荐(0) 编辑
摘要: win10 64bit Windows环境搭建Android目标平台如何安装JDK 官方教程 https://www.react-native.cn/docs/environment-setup JDK下载 安装包 http://www.oracle.com/technetwork/java/jav 阅读全文
posted @ 2021-03-02 17:10 KevinTseng 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://react.docschina.org/docs/context.html Context Context 提供了一个无需为每层组件手动添加 props,就能在组件树间进行数据传递的方法。 Context 提供了一种在组件之间共享此类值的方式,而不必显式地通过组件树的逐层传 阅读全文
posted @ 2021-02-26 17:17 KevinTseng 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 方案一:配置proxy 弹射出react详细配置 yarn eject 修改config\webpackDevServer.config.js proxy: { "/api": { target: "http://localhost:3000", changeOrigin: true, // pat 阅读全文
posted @ 2021-01-19 23:26 KevinTseng 阅读(436) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页