<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[js判断浏览器版本、系统型号等]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Mon, 06 Dec 2021 05:49:57 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	var userAgent=navigator.userAgent <br/>if(userAgent.index0f(&quot;OPR&quot;)&gt; -1)&#123;<br/>//0pera浏览器，因为Opera浏览器的userAgent也有Chrome和Safari，所以要写在前面 alert(&quot;Opera&quot;);<br/>&#125;else if(userAgent.index0f(&quot;Version&quot;)&gt;-1&amp;&amp;userAgent.index0f(&quot;Safari&quot;)&gt; -1)&#123;<br/>//没有更好的办法判断Safari浏览器，只能通过version(版本号)的英又来断，因为别的游览器版本号不是这样写的 alert(&quot;Safari&quot;):<br/>&#125;else if(userAgent.index0f(&quot;Chrome&quot;)&gt; -1)&#123;<br/>//谷歌浏览器也有可能是使朋Chrome内核的其他谢览器 alert(&quot;Chrome&quot;);<br/>&#125;else if(userAgent.index0f(&quot;Firefox&quot;)&gt;-1)&#123;<br/>//火狐浏览器<br/>alert(&quot;Firefox&quot;);<br/>&#125;else if(userAgent.index0f(&quot;compatible&quot;)&gt;-1 &amp;&amp;userAgent.index0f(&quot;MSIE 10.0&quot;)&gt; -1)&#123;<br/>//IE 10.0<br/>alert(&quot;IE 10.0&quot;);<br/>&#125;else if(userAgent.index0f(&quot;compatible&quot;)&gt;-1&amp;&amp; userAgent.index0f(&quot;MSIE 9.0&quot;)&gt; -1)&#123;<br/>//IE 9.0<br/>alert(&quot;IE 9.0&quot;);<br/>&#125;else if(userAgent.index0f(&quot;compatible&quot;)&gt;-1 &amp;&amp;userAgent.index0f(&quot;MSIE 8.0&quot;)&gt; -1)&#123;<br/>//IE 8.0<br/>alert(&quot;IE 8.0&quot;);<br/>helse if(userAgent.index0f(&quot;compatible&quot;)&gt;-1&amp;&amp; userAgent.index0f(&quot;MSIE 7.0&quot;)&gt; -1)&#123;<br/>//IE 7.0<br/>alert(&quot;IE 7.0&quot;);<br/><br/>各浏览器的navigator.userAgent<br/><br/>浏览器&nbsp;&nbsp;navigator.userAgent<br/>谷歌&nbsp;&nbsp;Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36<br/>火狐&nbsp;&nbsp;Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0<br/>Opera&nbsp;&nbsp;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 OPR/45.0.2552.635<br/>Safari&nbsp;&nbsp;Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30<br/>IE11.0&nbsp;&nbsp;Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; rv:11.0) like Gecko<br/>IE10.0&nbsp;&nbsp;Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)<br/>IE9.0&nbsp;&nbsp;Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)<br/>IE8.0&nbsp;&nbsp;Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)<br/>IE7.0&nbsp;&nbsp;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)<br/>Windows NT 区别系统版本<br/><br/>系统版本&nbsp;&nbsp;Windows NT<br/>win 10&nbsp;&nbsp;Windows NT 10.0<br/>win 8&nbsp;&nbsp;Windows NT 6.2<br/>win 7&nbsp;&nbsp;Windows NT 6.1<br/>vista&nbsp;&nbsp;Windows NT 6.0<br/>win xp&nbsp;&nbsp;Windows NT 5.1<br/>win 2000&nbsp;&nbsp;Windows NT 5.0<br/><br/>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] js判断浏览器版本、系统型号等]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>