货币金额javascript正则表达式

最多保留两位小数,货币金额(不能为0):

/^(([1-9]\d*)(\.\d{1,2})?)$|^(0\.0?([1-9]\d?))$/
posted @ 2017-12-01 15:48  沐子馨  阅读(1947)  评论(0编辑  收藏  举报