会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
簌簌寻寻
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2018年8月22日
jest自动化测试遇到的一些报错信息及解决方案
摘要: 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 簌大侠
阅读(6846)
评论(0)
推荐(0)
2018年7月27日
jest测试:怎么设置跑单个文件
摘要: 背景:当测试文件多的时候,npm run test 跑所有的测试文件太耽误时间,所以想只跑自己正在开发的测试文件 解决: 在配置文件中设置testRegex的值, 默认是(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$,跑__test__下的所有文件, 设置tes
阅读全文
posted @ 2018-07-27 17:07 簌大侠
阅读(2926)
评论(1)
推荐(0)
2018年6月21日
npm修改或切换镜像地址
摘要: 方法一: 直接编辑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 簌大侠
阅读(55268)
评论(4)
推荐(4)
2018年6月12日
git常用命令速查
摘要:
阅读全文
posted @ 2018-06-12 17:18 簌大侠
阅读(105)
评论(0)
推荐(0)
react中用highcharts画蜘蛛图
摘要: 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 簌大侠
阅读(468)
评论(0)
推荐(0)
js对象与字符串相互转换
摘要: 1. 对象转为字符串 2. json字符串转为对象
阅读全文
posted @ 2018-06-12 16:52 簌大侠
阅读(285009)
评论(0)
推荐(3)
js数组与字符串相互转换
摘要: 1. 数组转字符串 .join() 将数组中所有元素放到一个字符串中,并用指定的分隔符进行分割 2. 字符串转数组 .split() 将字符串以指定的分隔符分割成数组
阅读全文
posted @ 2018-06-12 16:35 簌大侠
阅读(110507)
评论(0)
推荐(0)
2018年6月8日
react-router拿到url传的值(用到URLSearchParams)
摘要: 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 簌大侠
阅读(6024)
评论(1)
推荐(0)
2018年6月7日
highcharts或highStock在react中使用highcharts-custom-events插件(右击出现一个菜单项!)
摘要: 1、引入 引用basiccontext(菜单的样式) 2、具体实现 3、结果: highcharts-custom-events中的事件类型: click double click (including mobile devices) right click (context menu) mouse
阅读全文
posted @ 2018-06-07 15:18 簌大侠
阅读(1045)
评论(0)
推荐(0)
上一页
1
2
公告