- 博客(7)
- 收藏
- 关注
原创 react 手机端touch 图片轮播
import React, { Component, PropTypes } from 'react';const styles = require('./DoctorSchedulesCard.scss');let startX;export default class DoctorSchedulesCard extends Component { static propTypes = {
2016-11-10 15:53:19 1833
转载 html5 canvas 实现折线图
效果图: 此效果难点:y轴是倒着走的。 其它思想与上一篇进度条的基本一样htm代码:<!DOCTYPE Html><html><head> <title>Line Chart Demo</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/></head><body> <
2016-10-17 16:47:39 2359 1
原创 html5 canvas 实现进度条展示统计数据
最终实现效果图: html代码:<!DOCTYPE Html><html><head> <title>Line Chart Demo</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/></head><body> <header>预约挂号人数(<span id
2016-10-17 16:28:20 2764
原创 关于自适应布局box 与 flex
box虽然出的比较早,但现在使用还是需要加上前缀,而且兼容性也说不上太好。但看到美团在用的是box,而非flex。我想box应该有flex的过代码之处吧。 下面详说box与flex的使用。**flex弹性布局** html代码 <div class="flexBox"> <p>1</p> <p>2</p> <p>3</p></div>横向布局 只需设置css代码如下
2016-09-08 16:13:50 366
原创 react render执行的几种情况
react render渲染的几种情况首次加载setState改变组件内部state。 注意: 此处是说通过setState方法改变。接受到新的props
2016-09-08 15:24:42 9749
原创 关于react需要知道的几个概念
react必须搞懂的4个概念 1. component 2. jsx 3. vistual DOM 4. Data Flowcomponent 组件react的组件化管理。jsxjavascript xmlVistual DOM (虚拟DOM)渲染流程: HTML DOM --> 创建渲染树 --> layout --> 绘制对于大型复杂的项目来
2016-09-08 14:45:41 516 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人