解决方案 »

  1.   

    "Never put off the work till tomorrow what you can put off today.不要 等 明天  交不上  差再找借口, 今天就要找好。".replace(/\s+([\u4e00-\u9fa5])/ig,'$1')
      

  2.   


    var str = "Never put off the work till tomorrow what you can put off today.不要 等 明天  交不上  差再找借口, 今天       就要找好。";
    alert(str.replace(/[  ]+(?=[\u4e00-\u9fa5])/g,""));
      

  3.   

    获取分组 $1在这里指([\u4e00-\u9fa5]) 即匹配到的中文 你可以把$1换成其他的看下效果
      

  4.   

    获取分组 $1在这里指([\u4e00-\u9fa5]) 即匹配到的中文 你可以把$1换成其他的看下效果

    非常感谢,祝您新年快乐,心想事成,万事如意,恭喜发财,羊年大吉,年年大吉。