Hi FE !
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub

scroll 中的 e的类型

const onScroll = (event: UIEvent) => {
  const target = event.target as HTMLElement;

  if (target && target.scrollTop + target.clientHeight + 1 >= target.scrollHeight) {
    // do the magic
  }
};

antd 中 Button 中的e

import { ReactNode, MouseEvent } from "react";

	const handleOpenAplly = (e: MouseEvent) => {
		e.stopPropagation();
	};

<Button
				type="primary"
				onClick={e => {
					handleOpenAplly(e);
				}}
			>
				分配
			</Button>

Edit this page
最近更新: 2025/12/2 01:46
Contributors: qdleader
qdleader
本站总访问量 129823次 | 本站访客数 12人