Visual Studio 2010 shows '{...}' in the debugger as the value for a Javascript variable. The type is object. How can I view the contents of the variable? There's no expansion icon.
Probably the object variable has no properties. Any object which has no properties will show the value as "{...}"
You could check in in code with the following:
var obj = {mem:1};
for (var a in obj)
{
alert(a); //alert the object member
alert(eval("obj." + a)); //alert the member value
}
See it at this fiddle: http://jsfiddle.net/uG6H6/
A function was assigned to the variable. Visual Studio doesn't seem to show anything when a function is assigned to a variable.. There's more information in Firebug.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.