Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Markdown 使用for循环在标记内的同一个表内生成表行_Markdown - Fatal编程技术网

Markdown 使用for循环在标记内的同一个表内生成表行

Markdown 使用for循环在标记内的同一个表内生成表行,markdown,Markdown,我是Markdown的新手,使用Markdown语法创建了一个表,但这里我的要求是创建一个标题只有一次的表,并且行应该是动态的,并且行应该是多行的 这是我的密码: { "table":{ "headers":[ "Date & Time", "Location", "Status of Item" ],

我是Markdown的新手,使用Markdown语法创建了一个表,但这里我的要求是创建一个标题只有一次的表,并且行应该是动态的,并且行应该是多行的

这是我的密码:

{  
         "table":{  
            "headers":[  
               "Date & Time",
               "Location",
               "Status of Item"
            ],

            "rows":[  
               [  
                  counter1,
                  counter2,
                  counter3 +"\n"
               ],

            ]
         }
      }

在这里,行应该在这里循环。

在nodejs中,您可以轻松使用javascript修改json:

 jsonobj={
  table:{  
        headers:[  
           "Date & Time",
           "Location",
           "Status of Item"
        ],
        rows:[]
    }
  };
for(i=0;i<10;i++){
jsonobj.table.rows.push([["12:30", "England","existing"]]);
}
console.log(json2md(jsonobj));
jsonobj={
表:{
标题:[
“日期和时间”,
“地点”,
“项目状态”
],
行:[]
}
};

对于(i=0;i你在说什么?(语言,环境)我在这里有一个Json对象,我需要以表格格式显示该对象…所以我在这里使用标记语言来获得此要求。谁解析标记???(环境)我在这里有节点json2md“活动”:[{“时间戳”:“xxxx”,“位置”:“xxxx”,“详细信息”:“xxxx”},{“时间戳”:“xxxx”,“位置”:“xxxx”,“详细信息”:“xxxx”}]感谢您的回复和信息,JonasI将尝试并让您知道。