Database 如何在Feedzilla API中解析JSON
您好,我正在为JASON格式的数据访问开发FeedZilla API。我收到了回复,但无法显示。这是我的密码Database 如何在Feedzilla API中解析JSON,database,json,parsing,feedzirra,Database,Json,Parsing,Feedzirra,您好,我正在为JASON格式的数据访问开发FeedZilla API。我收到了回复,但无法显示。这是我的密码 <script type="text/javascript"> $(document).ready(function() { $.ajax({ //url:"http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",
<script type="text/javascript">
$(document).ready(function()
{
$.ajax({
//url:"http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",
url:"http://api.feedzilla.com/v1/categories/26/articles.json",
type:'GET',
// data:'value='+value+'/'+sid,
dataType:'json',
error: function()
{
alert('Error loading Data.');
//LOADER.hide(2000);
},
success: function(rs)
{
jQuery("#unclockcodersource").html(Object(url));
//LOADER.hide(2000);
}
});
});
</script>
<div id="unclockcodersource"></div>
$(文档).ready(函数()
{
$.ajax({
//url:“http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",
url:“http://api.feedzilla.com/v1/categories/26/articles.json",
类型:'GET',
//数据:'value='+value+'/'+sid,
数据类型:'json',
错误:函数()
{
警报(“加载数据时出错”);
//装载机.隐藏(2000年);
},
成功:功能(rs)
{
jQuery(“#unlockCoderSource”).html(对象(url));
//装载机.隐藏(2000年);
}
});
});
我想显示此数据并将数据保存在数据库中。试试看
jQuery(“unlockCoderSource”).text(rs)
尝试从JSON获取特定属性 否则
success: function(rs)
{
$.each(rs.articles, function(index, ele){
alert(this.author);
});
}
success: function(rs)
{
$.each(rs.articles, function(index,ele){
alert(ele.author);
});
}