代码之家  ›  专栏  ›  技术社区  ›  Veera

如何检测web URL是否包含提要?

  •  1
  • Veera  · 技术社区  · 16 年前

    我在一些浏览器(例如Firefox)中看到,只有当页面包含RSS/Atom提要时,RSS提要图标才会被激活。浏览器如何检测页面是否包含提要?

    1 回复  |  直到 9 年前
        1
  •  5
  •   pho    14 年前

    <link rel="alternate" type="application/atom+xml" title="Feed for question 'How to detect if a web URL contains a feed or not?'" href="/feeds/question/3020295"> 
    

    或者,许多博客使用

    <link rel="alternate" type="application/rss+xml" title="Post Title" href="link-to-post"> 
    
    推荐文章