var RespMemo='1231231617440C01   心存正义        10';   //定义字符串

re = /[\u4E00-\u9FA5]/g; //测试中文字符的正则

var leng = RespMemo.match(re).length;  //计算中文的个数

alert(leng );

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-08-20
  • 2022-01-08
相关资源
相似解决方案