0
我想从“JSON”数组中提取特定的数据。 到目前为止,我已经尝试过这样做,请帮助我。如何动态创建JSON数据的HTML表格?
<?php
$uri=$_POST['uri'];
$api_key=$_POST['api_key'];
$board=$uri.$api_key;
$value=file_get_contents($board);
$json_o=(array)json_decode($value);
//echo "<pre>";
print_r($json_o);//here is the result of request
//echo "</pre>";
?>
使用each()
在data
取 “URI” - 它引用了 “.js文件” 页
$("#btn2").click(function(event){
$.post(
"main.php",{api_key:"024b427a5d41a62",uri:"https://kanbanflow.com//v1/tasks?apiToken="},
function(data) {
$('#content').html(data);
}
);
});
您可以发布您的JSON结构? –
其大导师。你还想让我发送吗? – user3386765
不是全部。只想外部结构下面 –