includes() not working in all browsers

前端 未结 6 1539
不思量自难忘°
不思量自难忘° 2020-11-27 17:24

right here is a block of my code. It works perfect in fireFox and Chrome. But not in IE. I get the error \"Object doesn\'t support property or method \'includes\'

6条回答
  •  粉色の甜心
    2020-11-27 18:03

    One more solution is to use contains which will return true or false

    _.contains($(".right-tree").css("background-image"), "stage1")

    Hope this helps

提交回复
热议问题