首页 > TAG信息列表 > chineseStr

将数字金额转换成中文大写格式

using System; namespace ConsoleApp1 { public static class MyExtension { public static string toCapitalMoney(this string strMoney) { if (string.IsNullOrEmpty(strMoney)) return string.Empty; var money = Convert.ToDouble(strMoney); if (mo

js数字转大写

// 数字转大写 export default function toChies(amount) { //形参 // 汉字的数字 const cnNums = [ "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌&quo

js相关函数

获取当前日期 function getCurrentDate(date) { var y = date.getFullYear(); var m = date.getMonth() + 1; var d = date.getDate(); return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d