Saturday, 15 June 2013

javascript - Get value from json object without count the array number -


This is my Jason object that I want to alert without array order [0], [1] without.

  var jsononj = {"objnew": {{testarry: "was my demo text"}, {testarry2: "was my demo text2"}}}; } Var newtest = jsononj.objnew [0]. Testarry; Warning (newtest);   

I want to [0] without warning how can I get this?

I think this is what you want:

  var i; For (i = 0; i    

No comments:

Post a Comment