在字符串中提取数字

var userId = ?DFADasd1242df3df;

var a = usersId.replace(/[^0-9]/ig,"");

a=12343;

原文地址:https://www.cnblogs.com/zerohu/p/5253990.html