浮点数 – 青春部落,流年似水 http://www.youthtribe.com 青春是一场远行,总记不起来时的路。 Fri, 11 Jan 2019 07:31:15 +0000 zh-CN hourly 1 https://wordpress.org/?v=6.1.7 浮点数 – 青春部落,流年似水 http://www.youthtribe.com/archives/1585 http://www.youthtribe.com/archives/1585#respond Fri, 09 Sep 2016 06:49:54 +0000 http://www.youthtribe.com/?p=1585 var reg = /^\d+(\.\d+)?$/;
if (!reg.test(new_score)){
alert('输入不合法,更改无效');
return false;
}

js正则判断字符串是否为正确的浮点数

]]>
http://www.youthtribe.com/archives/1585/feed 0