随笔分类 -  react

react,react-router等
摘要:1. react-dropzone-component 写一个名为MultiFilesUpload.js组件 页面中使用 2. react-filepond 写一个Filepond.js组件 页面中使用 阅读全文
posted @ 2018-09-10 16:01 簌大侠 阅读(1350) 评论(0) 推荐(0)
摘要:1.背景 本文中的自动化测试指的是单元测试 (UT),所谓单元测试也就是对每个单元进行测试,通俗的将一般针对的是函数,类或单个组件,不涉及系统和集成。单元测试是软件测试的基础测试,主要是用来验证所测代码是否和程序员的期望一致。 jest 是 facebook 开源的,用来进行单元测试的框架,功能比较 阅读全文
posted @ 2018-08-30 18:09 簌大侠 阅读(16072) 评论(0) 推荐(0)
摘要:1. Plugin 0 specified in "C:\\work\\New\\In-internet\\next\\babel.js" procided an invalid property of "default". 如图: 解决:.babelrc中缺少test配置 2. Unfortuna 阅读全文
posted @ 2018-08-22 17:33 簌大侠 阅读(6849) 评论(0) 推荐(0)
摘要:import React from 'react' import styles from './Spider.css' import Highcharts from 'highcharts-release/highstock' import 'highcharts-release/highcharts-more' type Props = { xData: Array, chartDa... 阅读全文
posted @ 2018-06-12 17:00 簌大侠 阅读(471) 评论(0) 推荐(0)
摘要:url链接: ***?token=12431243&deviceId=2 import type { Location } from 'react-router' const { search } = location const paramsString = search.substring(1) 阅读全文
posted @ 2018-06-08 10:57 簌大侠 阅读(6025) 评论(1) 推荐(0)