Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js percorrer objeto

var obj = {
  "column01": "Coluna 01",
  "column02": "Coluna 02"
}

Object.keys(obj).forEach(function(item){
 console.log(item + " = " + obj[item])
})

for (var property in obj){
  console.log(property + " = " + obj[property]);
}
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #percorrer #objeto
ADD COMMENT
Topic
Name
7+6 =