I'm new in javascript, i want to see all variables in my Object
I do this:
function configModal(data,buttonDatas){
...
alert(data.type);
...
}
but i have this:
[object Object]
Thx
I'm new in javascript, i want to see all variables in my Object
I do this:
function configModal(data,buttonDatas){
...
alert(data.type);
...
}
but i have this:
[object Object]
Thx
Just use stringigy
,
alert(JSON.stringify(data.type));
or display the object using console.log
console.log(data.type);
try something like this [Firefox => ctrl + shift + k]
console.log(data.type)
Reference
https://developer.mozilla.org/en-US/docs/Tools/Web_Console
TRY firebug for firefox
https://getfirebug.com/wiki/index.php/Console_Panel
Google chrome