徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
271 B

5 months ago
function helperCreateToNumber (handle) {
return function (str) {
if (str) {
var num = handle(str && str.replace ? str.replace(/,/g, '') : str)
if (!isNaN(num)) {
return num
}
}
return 0
}
}
module.exports = helperCreateToNumber