IE does not support Array includes or String includes methods

后端 未结 7 1230
温柔的废话
温柔的废话 2020-11-29 06:04

I have been working on a project and developing a JavaScript framework. The original code is about 700 lines so I only pasted this line. The includes method doesn\'t work on

7条回答
  •  死守一世寂寞
    2020-11-29 06:26

    You could just use .search() > -1 which behaves in the exact same way. http://www.w3schools.com/jsref/jsref_search.asp

    if ((row_cells[i]+"").search("#Eval(" + k + ")") > -1) {
    

提交回复
热议问题