What's the replacement for $.browser

前端 未结 6 831
粉色の甜心
粉色の甜心 2020-11-27 18:54

The jQuery document tags $.browser as deprecated. So what\'s the replacement for it?

6条回答
  •  Happy的楠姐
    2020-11-27 19:16

    you can use navigator variable from javascript

    console.log(navigator)
    

    but if you want to check the compatiblility with a function of jquery you can use the support var like

    $.support.ajax
    

提交回复
热议问题