js 正则替换非汉字的字符

value=value.replace(/[^\u4e00-\u9fa5|,]+/,',')

 

js 正则替换汉字的字符

value=value.replace(/[\u4e00-\u9fa5|,]+/,',')

 

 

比较时间JS:

function diffDate(end) {

var evalue = document.getElementById(end).value;

var dB = new Date(evalue.replace(/-/g, "/"));
if (new Date() > Date.parse(dB)) {
       return 1;

return 0;

}

调用时间比较的JS:

相关文章:

  • 2022-02-05
  • 2022-01-25
  • 2022-02-09
  • 2022-12-23
  • 2021-11-28
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-02-05
  • 2021-12-16
相关资源
相似解决方案