赞
踩
function sum(v) { var s=v.match(/\d+/ig); var sum = 0; for (var i=0;i < s.length;i++){ s[i] = parseInt(s[i],10); sum += s[i];} return sum;}