JavaScript var дамп
//common way
console.log(object);
//for non-browser srcipts
console.log( JSON.stringify(object, null, 2) ); // spacing level = 2
Web Surfer
//common way
console.log(object);
//for non-browser srcipts
console.log( JSON.stringify(object, null, 2) ); // spacing level = 2
//common way
console.log(object);
//for non-browser srcipts
console.log( JSON.stringify(object, null, 1) ); // spacing level = 1
function dump(obj) {
var out = '';
for (var i in obj) {
out += i + ": " + obj[i] + "\n";
}
alert(out);
}
dump(field.choices[i]);