1 <div id="container">2 3 4 </div>5 6 7 8 9 <script>10 11 var mc = new MongoCollection();12 document.getElementById("container").appendChild(mc.dom);13 14 var data = [15 {16 _id: '23434',17 undefined: undefined,18 null: null,19 bool: true,20 string: 'hello',21 number: 123.4,22 object: {},23 array: [1,2,3],24 },25 ];26 27 //data = JSON.parse('[{"lista":[1,2,3], "id": "Object(334)"}]');28 29 mc.SetData(data);30 31 </script>
Este ShareCode tiene versiones:
- var mc = new MongoCollection()... (17/07/2014)
- var mc = new MongoCollection()... (13/11/2017)
Enlace
El enlace para compartir es: