String s  = "aoood";
System.out.println(s.indexOf(""));//返回0 System.out.println(s.indexOf("w"));//返回-1 例如 var customerKinds="GR,QY"; (customerKinds.indexOf(customerKind)!= -1){ -------------------------------------------------------------- } customerKind="''" 则会全部显示 customerKind有值,则会根据值显示

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-11-17
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-19
  • 2021-11-05
  • 2021-06-11
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
相关资源
相似解决方案