Is there a way to wrap all JavaScript methods with a function?

后端 未结 3 1284
梦谈多话
梦谈多话 2020-12-05 08:34

I want to wrap every function call with some logging code. Something that would produce output like:

func1(param1, param2)
func2(param1)
func3()
func4(param         


        
3条回答
提交回复
热议问题