我有两个像这样的数组var data = [Jhon, white house, other stuff];{"name":"Jhon", "address":"white house",.... and so on}
基本上,一个数组保存键,另一个数组保存值。有什么容易做到的方法吗?我在网上读到,我
此函数将生成一个包含json对象的数组:function unpack_estoque(tnm,total,estoque_vl,id,tid,st) { };现在,我如何获得estoque长度来遍历收集到的项?estoque.length返回undefined,而for (var i in estoque)循环通过JSON对象,而不是estoque[]根数组。
谢谢。