How to interupt Array.push with Proxy?

后端 未结 0 1541
北恋
北恋 2021-01-25 23:53

I want to add a side effect every when an array being pushed. For example, I want to add console.log:

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题