【发布时间】:2015-01-28 09:45:06
【问题描述】:
有一个 JSON 数据存储在 javascript 的一个变量中。我必须将它存储在名为 .json 的其他文件中。我该怎么做。Json 数据是这样的:
{
"method":"get",
"class":"form-horizontal",
"html":[{
"type":"div",
"class":"form-group",
"id":"input_Name",
"html":[{
"type":"label",
"class":"control-label col-sm-2",
"for":"input_Name",
"html":"Name"},
{
"type":"div",
"class":"col-sm-10",
"html":[{
"type":"text",
"class":"form-control",
"name":"input_Name",
"id":"input_Name",
"placeholder":"user@example.com"
}]
}]
}]
}
【问题讨论】:
-
你到底想要什么?
-
有一个JSON数据存储在javascript的一个变量中。我必须将它存储在名为 .json 的其他文件中。我该怎么做
标签: javascript