IE不支持字符串的includes()方法;可以用indexOf()替换;

includes()方法返回true和false;

var str = "asdklmn";

if(str.includes()){

}可用if(str.indexOf("dkl")>=0){

........

}替换;

 

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-11-18
猜你喜欢
  • 2021-09-19
  • 2021-05-18
  • 2022-12-23
  • 2022-02-15
  • 2021-12-14
  • 2022-01-14
  • 2022-12-23
相关资源
相似解决方案