How to list the properties of a JavaScript object?

后端 未结 17 2590
刺人心
刺人心 2020-11-22 00:34

Say I create an object thus:

var myObject =
        {\"ircEvent\": \"PRIVMSG\", \"method\": \"newURI\", \"regex\": \"^http://.*\"};

What is

17条回答
  •  一向
    一向 (楼主)
    2020-11-22 01:21

    IE does not support for(i in obj) for native properties. Here is a list of all the props I could find.

    It seems stackoverflow does some stupid filtering.

    The list is available at the bottom of this google group post:- https://groups.google.com/group/hackvertor/browse_thread/thread/a9ba81ca642a63e0

提交回复
热议问题