![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
爱哭小老虎
没心没肺,活着不累
展开
-
TypeError: Cannot read property ‘location‘ of undefined
@报错:TypeError: Cannot read property ‘location’ of undefined报错:TypeError: Cannot read property ‘location’ of undefined这样的情况自己在用react-router-dom时引用路由组件时遇到,我发现是自己引用“Router”时,这样写的import { Router, Route, Link } from "react-router-dom";;但是用这样就行了,报错解决import {原创 2021-02-09 10:04:50 · 2082 阅读 · 0 评论 -
leaftjs: map container is already initialized
1.在使用leaftjs时报错map container is already initialized。2.监听弹出框里面的事件原创 2022-07-01 13:50:48 · 871 阅读 · 0 评论 -
BizCharts中将图表保存成图片
BizCharts中将图表保存成图片//引入的依赖import { Chart, Interval, Tooltip } from 'bizcharts';import html2canvas from 'html2canvas';export const List1 = (props: any) => {//渲染内容代码 const data = [ { year: '1951 年', sales: 0 }, { year: '1952 年', sales: 52 },原创 2021-09-12 13:22:25 · 244 阅读 · 0 评论