var str = "11:222";    

/*

*   截取 “ :”之前和之后的值  

*/
document.write(str.split(':')[0])    //输出11
document.write(str.split(':')[1])    //输出222

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-02-09
  • 2021-11-20
  • 2022-12-23
  • 2022-02-09
  • 2021-11-07
  • 2021-05-31
相关资源
相似解决方案