Is this okay?

![1512204227282909.png 4%{~NFE5_]ZHT$V6`MOC{3G.png](https://img.php.cn//upload/image/435/530/712/1512204227282909.png)
##Please verify that it is not empty and verify it It must be numbers, letters, underscores, and the beginning, forming 6 to 10 digits. Can my js part be written like this? Or I should first determine whether it is empty, and then verify the matching characters. Let’s write it like this together, right? I am self-taught. If there is something wrong with the above code, please help me. Please help me. Thanks.