Detecting Safari 5 with Javascript

2019-08-15 12:42发布

问题:

How can i detect that the browser is Safari 5 or higher?

回答1:

I think you want to know if Safari is v5 or higher because of some feature.

In this case you can use also http://api.jquery.com/jQuery.support/



回答2:

Here's a good article on this topic:

http://www.quirksmode.org/js/detect.html

A bit more involved and with more code than maybe you are looking for, but it should certinaly help!