What is the correct way to detect Opera using jQuery?

前端 未结 9 1687
梦毁少年i
梦毁少年i 2021-02-19 04:52

Amazon.com recently updated their javascript, and it\'s causing problems with some Opera browsers.

Their browser detection code looks like so, but it\'s faulty:

9条回答
  •  天涯浪人
    2021-02-19 05:36

    I think this way is the best
    if ( window.opera.version() == 12) { }
    This example check if opera version is 12. Very useful when I have problems with font-face in Opera.

提交回复
热议问题