Posts by user3120449 • 46 points
2 posts
-
3
votes3
answers4171
viewsA: How to transform data into array with JSON?
//obj.resgatarValores(); var obj= [{nome:"Marcelo",idade:20},{nome:"Teste",idade:90}]; var b =JSON.stringify(obj); document.writeln(b)…
-
0
votes2
answers378
viewsA: Execute JS command using string
var comando = eval("data.result[0][0].Pedidos.length"); or however you prefer var variavel = "pedidos"; var comando = eval("data.result[0][0]."+variavel+".length");…