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!