function chk() {
            var patrn = /^\d+(\.\d+)?$/;
            var result = true;
            $("input[type=text]").each(function () {
                if (!patrn.exec(this.value)) {
                    alert("请输入正确的数字!");
                    result = false;
                }
            })

            return result;
        }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案