How do I dump JavaScript vars in IE8?

后端 未结 11 694
既然无缘
既然无缘 2020-12-02 08:04

I have an object I need to examine in IE8. I tried the developer tools and console.log, their Firebug equivalent. However, when I output the object to the log:<

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 08:51

    A bit off topic (as it won't work for DOM elements) but I've found it handy to use the JSON.stringify(object) to get a JSON string for the object which is pretty readable.

提交回复
热议问题