-
## ts测试jest
### 常见做法
第一步安装包: `yarn add -D typescript jest ts-jest @types/jest`
创建jest.config.js:
```js
module.exports = {
transform: {
'^.+\\…
-
I am getting an error caused by Marker.js, using the google-maps-react downloaded from npm. The code I have is below:
```
import React from 'react'
import {InfoWindow, Marker, Map, GoogleApiWrapp…
-
AKA routes that look like
``` js
```
## The issue
We need dynamic routes to support creating an entire category of sties including blogs. However currently we don't have a way to turn something lik…
-
#### 描述问题:
在react、app多页应用环境中,使用nav联动增删改查,点击后没有高亮效果
#### 截图或视频:
![fe46c895745edeb5dfaab585dd001cf](https://github.com/baidu/amis/assets/141314006/4da96d3b-c421-45e2-a8dc-aa11ef2721d9)
![56275…
-
### 2017-9-6 晨读
* react的unmount只是把组件从界面上移除,组件的实例(普通的js对象)并没有销毁,由垃圾回收机制回收。
* [v8中对象存储有字典模式和快速模式,动态添加过多熟悉和删除属性会成为字典模式,效率会下降](https://zhuanlan.zhihu.com/p/28777722?utm_source=wechat_session&utm_medium…
-
## 一个极简前端路由实现
说一下前端路由实现的简要原理,以 hash 形式(也可以使用 History API 来处理)为例,当 url 的 hash 发生变化时,触发 hashchange 注册的回调,回调中去进行不同的操作,进行不同的内容的展示。直接看代码或许更直观
```js
function Router() {
this.routes = {};
th…
-
##### 版本号:3.7
##### 问题描述:
##### 问题描述:nginx部署之后其他功能正常,但无法访问积木报表
##### 错误截图:
![111](https://github.com/user-attachments/assets/2c1f7acc-d4ba-4bca-aba0-465ba7607624)
#### 友…
-
Hello,
Is it possible to change the docroot of the application from / to /ui (or any) ?
I am trying to run it behind load balancer but the app is always calling back the requests to / (even if i r…
-
#### 实现场景:
在app组件中,把一个系统的所有页面都使用js编写(schema是js文件)然后设置到app的pages数组中,这样一个系统几百个页面会导致这个数组非常大,可能有5M,会不会出现性能问题,比如第一次进入页面卡顿
#### 存在的问题:
因为无法使用js动态加载页面的schema,可能会导致第一次加载页面卡顿,pages使用schemaApi加载的话,js文件限制很多,我…
lawbc updated
2 months ago
-
我配置了GitHub库, 最初建立笔记本时候,可以看到crossnote把readme.md已经下载到本地了。
后来在crossnote里面建了几个note后,点击Upload和Download都没有反应。 看chrome的network里面,也没看到浏览器向网络发出请求。
![image](https://user-images.githubusercontent.com/311…