// 小写数字转化为大写
function conversionNumber(number) {
// 一百以内不包含一百
let str = '' + number
let chnNumChar = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十']
if (number <= 10) {
return chnNumChar[number]
} else if (number > 10 && number <= 19) {
return '十' + chnNumChar[Number(str[1])]
} else if (number > 19 && number <= 99) {
if (str[1] === '0') {
return chnNumChar[Number(str[0])] + '十'
} else {
return chnNumChar[Number(str[0])] + '十' + chnNumChar[Number(str[1])]
}
}
}