var obj = {'test1':"value1", "test2": "value2" }
console.log(obj);
reuslt
[object, Object]
Is is possible to show the content the object not to use JSON.stringify on IE9?
like the following
{'test1':"value1", "test2": "value2" }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using
console.dir()instead ofconsole.log()– this will also work with other browsers’ consoles.See also the MSDN article Internet Explorer 9 Developer Tools Deep Dive – Part 3: Debugging JavaScript.