How to find hidden properties/methods in Javascript objects?

后端 未结 4 1099
难免孤独
难免孤独 2020-12-18 15:05

I would like to automatically determine all of the properties (including the hidden ones) in a given Javascript object, via a generalization of this function:



        
4条回答
  •  时光说笑
    2020-12-18 15:31

    this works in firebug to find object methods.

    Object.getOwnPropertyNames(Math);

提交回复
热议问题