摘要: 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 簌大侠 阅读(6728) 评论(0) 推荐(0) 编辑
摘要: 背景:当测试文件多的时候,npm run test 跑所有的测试文件太耽误时间,所以想只跑自己正在开发的测试文件 解决: 在配置文件中设置testRegex的值, 默认是(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$,跑__test__下的所有文件, 设置tes 阅读全文
posted @ 2018-07-27 17:07 簌大侠 阅读(2820) 评论(1) 推荐(0) 编辑
摘要: 方法一: 直接编辑npm的配置文件 直接修改registry的地址 sass_binary_site=https://npm.taobao.org/mirrors/node-sass/phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ 阅读全文
posted @ 2018-06-21 14:17 簌大侠 阅读(54620) 评论(4) 推荐(4) 编辑
摘要: 阅读全文
posted @ 2018-06-12 17:18 簌大侠 阅读(101) 评论(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 簌大侠 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1. 对象转为字符串 2. json字符串转为对象 阅读全文
posted @ 2018-06-12 16:52 簌大侠 阅读(284617) 评论(0) 推荐(3) 编辑
摘要: 1. 数组转字符串 .join() 将数组中所有元素放到一个字符串中,并用指定的分隔符进行分割 2. 字符串转数组 .split() 将字符串以指定的分隔符分割成数组 阅读全文
posted @ 2018-06-12 16:35 簌大侠 阅读(110400) 评论(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 簌大侠 阅读(5989) 评论(1) 推荐(0) 编辑
摘要: 1、引入 引用basiccontext(菜单的样式) 2、具体实现 3、结果: highcharts-custom-events中的事件类型: click double click (including mobile devices) right click (context menu) mouse 阅读全文
posted @ 2018-06-07 15:18 簌大侠 阅读(983) 评论(0) 推荐(0) 编辑