Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <cfscript>
  2. function f1() {
  3. var data = {
  4. a : {
  5. id : 1,
  6. b : {
  7. id : 2
  8. }
  9. }
  10. };
  11.  
  12.  
  13. var myFunc = function() {
  14. writeDump(data);
  15. writeDump(data.a);
  16. writeDump(structKeyArray(data.a));
  17. writeDump(data.a.id); //shows undefined on ACF10-2016
  18. writeDump(data.a["id"]); //shows undefined on ACF10-2016
  19. writeDump(data.a["ID"]); //shows undefined on ACF10-2016
  20. writeDump(data.a.b); //shows undefined on ACF10-2016
  21. writeDump(structKeyArray(data["a"]["b"]));
  22. writeDump(data.a.b.id); //shows undefined on ACF10-2016
  23. };
  24.  
  25. myFunc();
  26. }
  27.  
  28. f1();
  29.  
  30. </cfscript>
Add Comment
Please, Sign In to add comment