JSON ??? ???({}) ?? ?????.
JSON ?? ???
???? ?? ?/? ?? ??? ? ????.
?? ?????? ?? ?? ??? JSON ??? ??(???, ??, ??, ??, ?? ?? null)? ? ????.
?? ?? ????? ??(:)? ?????.
? ?/? ?? ??(,)? ?????.
JSON ?? ?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php.cn</title> </head> <body> <p>你可以使用點號(.)來訪問 JSON 對象的值:</p> <p id="demo"></p> <script> var myObj, x; myObj = { "name":"php.cn", "alexa":10000, "site":null }; x = myObj.name; document.getElementById("demo").innerHTML = x; </script> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????