Get name as String from a Javascript function reference?

前端 未结 8 2051
Happy的楠姐
Happy的楠姐 2020-12-25 11:27

I want to do the opposite of Get JavaScript function-object from its name as a string?

That is, given:

function foo()
{}

function bar(callback)
{
           


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