1 var stringValue = "yellow";
2 console.log(stringValue.localeCompare("brick"));
3 console.log(stringValue.localeCompare("yellow"));
4 console.log(stringValue.localeCompare("zoo"));
chrome下brick显示为23,其他浏览器均为1

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-11-20
  • 2021-10-19
  • 2022-01-15
  • 2021-09-29
猜你喜欢
  • 2021-12-29
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案