react 节流按钮组件

import React from 'react'; import { Button } from 'antd'; import throttle from 'lodash/throttle'
const throttleButton = (props) => { const { onClick } = props;
  return (     <Button type="primary" {...props} onClick={throttle(onClick, 1000)}>       {props.children}     </Button>   ) };
export default throttleButton;
上一篇:防抖与节流(三)


下一篇:【无人机】【2014.12】基于区域覆盖的四旋翼无人机最优路径规划与控制