Get method name from within a typescript method

前端 未结 5 1081
陌清茗
陌清茗 2021-01-04 07:33

I want to get the name of the current method from within an instance method of a class in Typescript.

(Pseudocode, doesn\'t work):

class Foo {
    ba         


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