js只能输入数字和小数点的正则
1 <html> 2 <head> 3 <meta charset="UTF-8"> 4 <title>document</title> 5 </head> 6 <body> 7 <form> 8 <input type="text" autocomplete="off" id="price" autofocus="autofocus" onkeyup="value=value.replace(/[^\d^\.]+/g,'')">> 9 </form> 10 </body> 11 </html>
路是自己走出来的,而不是选出来的。

浙公网安备 33010602011771号