Can I spy on an object rather than an object method?

后端 未结 0 659
粉色の甜心
粉色の甜心 2020-12-12 22:12

I know that I can use spy like below to track the number of times a function has been called, when I have a reference to the object on which it is a method.

j         


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