foo in bar - 'in' operator javascript?

前端 未结 4 2212
庸人自扰
庸人自扰 2021-01-21 09:52

I recently read a tutorial on CSS browser feature detection... The end product was something like this...

var prefix = [\'Moz\', \'webkit\', \'O\', \'ms\', \'Kht         


        
4条回答
  •  日久生厌
    2021-01-21 10:51

     document.createElement('div').style
    

    will return a object which have CSS properties. you can use key in to check if particular property exist in a object.

提交回复
热议问题