react 一些函数的作用

https://www.lodashjs.com/docs/lodash.throttle#_throttlefunc-wait0-options
https://blog.csdn.net/glorydx/article/details/109893917
 const _handleTogglePower = useCallback(
    throttle(() => {
      lampPutDpData({ [powerCode]: !power });
    }, 200),
    [power]
  );

 

posted @ 2022-05-19 13:46  勤奋的小铁  阅读(26)  评论(0编辑  收藏  举报