其他分享
首页 > 其他分享> > react 一些函数的作用

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]
  );

 

标签:www,throttle,函数,power,powerCode,react,csdn,handleTogglePower,作用
来源: https://www.cnblogs.com/javaktolin/p/16179804.html