News da:
Videos matching: ajax video tutorial:
AJAX Tutorial – 33 – Looping Through and Displaying Employee Information
The thing is, if you know JavaScript Object literal syntax, you already know JSON. The only difference is that keys are explicitly surrounded with quotes, and the entire thing is passed as a string.
apple:color:”red”,size:5}
becomes
‘ “apple”:”color”:”red”,”size” :5} ‘
So you can use this with AJAX, or store complex data structures in localStorage with JSON.stringify(), and decode it with JSON.parse(), getting a fully working object.
It works with arrays, too. [1,[2]] becomes “[1,[2]]”
Reply·
Sign in to YouTube
Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Braden Best’s comment.
Sign in to YouTube
Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Braden Best’s comment.
in reply to
Per questo post si ringrazia:
Videos matching: ajax video tutorial
e vi invitiamo a continuare la lettura su:
AJAX Tutorial – 33 – Looping Through and Displaying Employee Information