我一直在尝试使用 jquery xml 解析器从 picasa 中提取专辑名称。但是,当我使用“https://picasaweb.google.com”链接时,该功能不起作用。关于我做错了什么的任何线索?
<script>
$(document).ready(function()
{
$.ajax({
type: "GET",
url: "https://picasaweb.google.com/data/feed/api/user/userID?kind=album&access=visible",
dataType: "xml",
success: parseXml
});
});
function parseXml(xml)
{
$(xml).find('entry').each(function()
{
$("#output").append($(this).find('title').text() + "<br />");
});
}
</script>
<div id="output"></div>