我有没有可以下载大型RSS源或xml源的地方,我想测试分阶段显示数据并检查计算机是否冻结。 此外,有任何例子我可以使用xml,jquery和json来加载来自xml或json的结果,当用户点击“更多”时它会获得下一个10或500条记录并填充表格。
提前致谢
答案 0 :(得分:0)
这里有一个适用于该示例的php脚本:
search.php
<?php
header("Content-type", "application/json");
$term = $_GET['term'];
?>
[
{ "id": "Turdus pilaris", "label": "Fieldfare", "value": "Fieldfare" },
{ "id": "Falco eleonorae", "label": "Eleonora\'s Falcon", "value": "Eleonora\'s Falcon" },
{ "id": "Falco rusticolus", "label": "Gyr Falcon", "value": "Gyr Falcon" },
{ "id": "Falco biarmicus", "label": "Lanner Falcon", "value": "Lanner Falcon" },
{ "id": "Falco vespertinus", "label": "Red-footed Falcon", "value": "Red-footed Falcon" },
{ "id": "Falco cherrug", "label": "Saker Falcon", "value": "Saker Falcon" },
{ "id": "Falco peregrinus", "label": "Peregrine Falcon", "value": "Peregrine Falcon" },
{ "id": "Anas falcata", "label": "Falcated Duck", "value": "Falcated Duck" },
{ "id": "Emberiza spodocephala", "label": "Black-faced Bunting", "value": "Black-faced Bunting" },
{ "id": "Pelagodroma marina", "label": "White-Faced Storm-Petrel", "value": "White-Faced Storm-Petrel" }
];
您也可以动态生成该json。只要告诉我你是否需要它。 希望这可以帮助。干杯