How to find hidden properties/methods in Javascript objects?

后端 未结 4 1104
难免孤独
难免孤独 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:37

    This is explained in a previous answer. Basically, the spec explicitly requires (using DontEnum) that these objects aren't enumerable.

提交回复
热议问题