How to list the properties of a JavaScript object?

后端 未结 17 2581
刺人心
刺人心 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:19

    I'm a huge fan of the dump function.

    http://ajaxian.com/archives/javascript-variable-dump-in-coldfusion alt text

提交回复
热议问题