How to get method name from JavaScript file

后端 未结 4 1537
终归单人心
终归单人心 2021-01-16 19:33

I have a JavaScript file with many methods defined in it. Is there any way to know how many methods are in that file & what are the names of methods?

4条回答
  •  余生分开走
    2021-01-16 20:00

    Is there any way to know that how many methods are there in Java Script & what is the names of method?

    Read the source or the documentation (if there is any).

    If you're looking for some kind of "list avaialble methods" function, there isn't one. Writing one would be the equivalent of writing a javascript parser and perhaps even compiler.

    Good luck with that. :-)

提交回复
热议问题