//JSON string var json_str = '{"name":"jsbin","age":99,"birthday":"1988/02/02"'; json_str.concat(',"mails":{"home":"hotmail@mail.com","work":"yahoo@mail.com"}'); json_str.concat(',"phones":{"mobile":"0923456789","home":"048353868"}}'); //轉JSON物件 var json = JSON.parse(json_str); alert(json.mails.home);收工
沒有留言:
張貼留言