參考博客:http://www.javashuo.com/article/p-nqdmoadm-mw.htmlhtml
/^\d+(\.\d+)?$/
https://blog.csdn.net/u010552788/article/details/51019367/正則表達式