Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Browser 如何检测web URL是否包含提要?_Browser_Rss_Feed_Atom Feed - Fatal编程技术网

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

Browser 如何检测web URL是否包含提要?,browser,rss,feed,atom-feed,Browser,Rss,Feed,Atom Feed,我在一些浏览器(例如Firefox)中看到,只有当页面包含RSS/Atom提要时,RSS提要图标才会被激活。浏览器如何检测页面是否包含提要 只需查看此页面的代码即可。在标题中添加一些javascript之后,您将看到: <link rel="alternate" type="application/atom+xml" title="Feed for question 'How to detect if a web URL contains a feed or not?'" href="/f

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

只需查看此页面的代码即可。在标题中添加一些javascript之后,您将看到:

<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"> 

只需查看此页面的代码即可。在标题中添加一些javascript之后,您将看到:

<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">