![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
Solin121
这个作者很懒,什么都没留下…
展开
-
H5移动端点击弹窗页面后禁止背后页面滚动
H5移动端点击弹窗页面后禁止背后页面滚动。原创 2022-11-01 10:42:23 · 472 阅读 · 1 评论 -
react 组件异步加载
话不多说 直接上代码 import React, {Component} from "react"; import {Modal} from "antd"; const AsyncComponent = loadComponent => ( class AsyncComponent extends Component { state = { Component: null } componentDidMount() { const me = this; if(th原创 2022-03-22 09:27:43 · 1832 阅读 · 0 评论 -
前端并发请求数量控制
class RequestLimit { constructor(options) { this.unRequsetFn = []; this.limit = options.limit || 2; this.requestCount = 0; } async request(fn) { if (this.requestCount >= this.limit) ...原创 2021-04-13 12:24:34 · 1968 阅读 · 0 评论