0
에 자바 스크립트 변수를 쓰기 나는 JSON 파일이 있습니다 example_json.json를이 파일은 다음과 같습니다 JSON 파일
{
"timeline":
{
"headline":"WELCOME",
"type":"default",
"text":"People say stuff",
"startDate":"10/4/2011 15:02:00",
"date": [
{
"startDate":"10/4/2011 15:10:00",
"endDate":"10/4/2011 15:55:00",
"headline":"prvo",
"text":"<p>dddddddddddddddd dd</p>",
"asset":
{
"caption":"yessss"
}
},
{
"startDate":"10/4/2011 17:02:00",
"endDate":"10/4/2011 18:02:00",
"headline":"drugo da da",
"text":"<p>In true political fashion, his character rattles off common jargon heard from people running for office.</p>",
"asset":
{
"media":"http://youtu.be/u4XpeU9erbg",
"credit":"",
"caption":""
}
}
]
}
}
그래서이 JSON 파일의 예입니다.
var place.name;
var zajson;
과 : 다른 측면에서
나는이 변수가 <button>Add to timeline</button>
지금은 새로운 내부 '요소' "날짜"와를 만드는 버튼을 클릭하여 "타임 라인에 추가 할 때"내가 원하는
"의 startDate는"이 될 : 형식 curentDateFormat 월/일/년 + zajson
와 "헤드 라인"추가 : place.name
내가이 변수를 추가 할 수있는 방법을 그리고 example_json.json에서 "date"안에 새로운 요소를 만드시겠습니까?
제가 example_json.json 파일이 변수를 작성하는 방법 ??? – drTesla
반대편에 있습니까? 천국을 말하는거야? –
죄송합니다. 제 영어가 ... – drTesla