layui 数字小数正则

form.verify({
            money: [/^\d+$|^\d*\.\d+$/,'只能填写数字或小数'],
        });

  

原文地址:https://www.cnblogs.com/bkhdd/p/15612590.html