22 lines
387 B
XML
22 lines
387 B
XML
var obj = {
|
|
numberLength: function (value) {
|
|
if(value) {
|
|
var num = (value + '').length
|
|
if(num > 9 && num <= 12) {
|
|
return 'over9'
|
|
}
|
|
if(num > 12 && num <= 14) {
|
|
return 'over12'
|
|
}
|
|
if(num > 14) {
|
|
return 'over14'
|
|
}
|
|
else return ''
|
|
}
|
|
return ''
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
numberLength: obj.numberLength
|
|
} |