1 2 3 4 5 ··· 9 下一页
摘要: https://www.jianshu.com/p/775f9e99daa5 阅读全文
posted @ 2019-03-17 19:21 Embrace_LY 阅读(417) 评论(0) 推荐(0) 编辑
摘要: this.props.match中包含的是url信息其中 params字段可以获取路由参数。 路由为: { path: "/FriendDetail/:id/:index", name: "FriendDetail", component: FriendDetail } 这样可以根据id和index 阅读全文
posted @ 2019-08-06 18:13 Embrace_LY 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 单行 max-width: 16em; //最多15个字 overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 16em; //最多15个字 overflow: hidden; white-space: 阅读全文
posted @ 2019-08-05 18:12 Embrace_LY 阅读(168) 评论(0) 推荐(0) 编辑
摘要: counter函数 它通常与伪元素一起使用,但理论上可以在支持值的任何地方使用 返回值 指定计数器当前的值 用法 counter(countername) 计数器的名字通过属性counter-increment,counter-reset定义。 counter-increment属性 它的值包括两部 阅读全文
posted @ 2019-08-02 18:25 Embrace_LY 阅读(614) 评论(0) 推荐(0) 编辑
摘要: arr.push('')向数组传入空值,起占位的作用,元素渲染时,渲染出空白区域,以维持整体效果不被破坏。 阅读全文
posted @ 2019-08-02 17:08 Embrace_LY 阅读(582) 评论(0) 推荐(0) 编辑
摘要: <img src={avatar + '_Avatar'} alt='' /> 得到的图片地址如:https://img/xx.jpg_Avatar 阅读全文
posted @ 2019-07-30 15:15 Embrace_LY 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 使用详解:类微信图片浏览组件 源码:react-wx-images-viewer 阅读全文
posted @ 2019-07-29 17:09 Embrace_LY 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 目录 Loading文件夹 index.js index.less 代码详情 index.js import React, { Component } from 'react'; import './index.less'; class Loading extends Component { ren 阅读全文
posted @ 2019-07-26 18:22 Embrace_LY 阅读(243) 评论(0) 推荐(0) 编辑
摘要: React Transition Group -- CSSTransition 组件 阅读全文
posted @ 2019-07-26 10:46 Embrace_LY 阅读(251) 评论(0) 推荐(0) 编辑
摘要: react-Zmage图片缩放组件: https://zmage.caldis.me/ Ant Design Mobile:https://mobile.ant.design/index-cn (一个基于 Preact / React / React Native 的 UI 组件库) Element 阅读全文
posted @ 2019-07-19 17:00 Embrace_LY 阅读(2132) 评论(0) 推荐(0) 编辑
摘要: 关于touch事件基础: 三类事件: touchstart、touchmove、touchend 三个触摸列表: touches:正在触摸屏幕的所有手指的一个列表,手指离开屏幕后对应元素被清除 targetTouches:正在触摸当前DOM元素上的手指的一个列表,手指离开屏幕后对应元素被清除 cha 阅读全文
posted @ 2019-07-19 16:53 Embrace_LY 阅读(578) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 9 下一页