2015-11-06 60 views

回答

0

如果您不需要本机GitHub问题页面的所有功能,则可以考虑列出这些问题以生成您自己的包含/演示文稿。

请参阅 “possible to embed Github list of issues (with specific tag) on website?

Kasper Souren提出以下in the commentsfollowing fiddle

var urlToGetAllOpenBugs = "https://api.github.com/repos/jquery/jquery/issues?state=open&labels=bug"; 

$(document).ready(function() { 
    $.getJSON(urlToGetAllOpenBugs, function (allIssues) { 
     $("div").append("found " + allIssues.length + " issues</br>"); 
     $.each(allIssues, function (i, issue) { 
      $("div") 
       .append("<b>" + issue.number + " - " + issue.title + "</b></br>") 
       .append("created at: " + issue.created_at + "</br>") 
       .append(issue.body + "</br></br></br>"); 
     }); 
    }); 
}); 
+0

这飞驰的工作。现在我只需要找到一种方法来正确解析降价。谢谢! –

+0

这是小提琴:http://jsfiddle.net/bso6xLee/2/ – guaka

+0

@KasperSouren谢谢。我已将您的评论纳入答案中,以获得更多的知名度。 – VonC

相关问题