正则

  1. replace(/[^0-9]/ig,""); 将所有非数字替换为""
原文地址:https://www.cnblogs.com/fwjlucifinil/p/13564549.html